You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
wonderful package, hope you could figure out a problem I'm having fortifying your sf objects for plotting in ggplot2.
library(tilegramsR)
library(ggplot2)
data(sf_DKOS_CD_Hexmap_v1.1)
d2 <- fortify(as(sf_DKOS_CD_Hexmap_v1.1, "Spatial"),
region = "STATENAME")
ggplot() +
geom_polygon(aes(x = long, y = lat, group = group, fill = id),
data = d2,
color = "black") +
guides(fill = FALSE)
which returns
i wonder--why are there those superfluous interior borders in CA, TX, WI, etc?
The text was updated successfully, but these errors were encountered:
Looks like r-spatial/sf#275. For now , call the precision method before converting it into spatial.
On a sidenote if you build 'ggplot2' from GH repo (sf branch) devtools::install_github('tidyverse/ggplot2', ref='sf'), you will be able to use sf object as is, w/o needing to cast them to sp objects.
wonderful package, hope you could figure out a problem I'm having
fortifying
yoursf
objects for plotting inggplot2.
which returns
i wonder--why are there those superfluous interior borders in CA, TX, WI, etc?
The text was updated successfully, but these errors were encountered: