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
Sorry to post this without a solution, but I have to leave it for now.
I get an error from proj4::project for (seemingly) identical inputs when used in coord_proj(), but not directly.
It's likely to do with the coord_munching which I haven't explored yet - these polygons are both stretched around the edges of the laea map with these parameters, and that would likely be true for different polygons and projection combos. (It might be true for the old mapproj idioms for ggplot, but I never learnt to use them).
I don't know if this is a munching problem for ggalt or ggplot2, but either way I'm happy to help. A general "topojson"-like solution would be good in R, etc. etc.
Preparation.
library(dplyr)
library(maptools)
data(wrld_simpl)
library(ggalt)
## either 24 or 175 triggers the problem, everything else is fineff<- fortify(wrld_simpl[24, ])
proj<-"+proj=laea +lat_0=-90 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
aye. gave a shout out to the sf ecosystem in the ggalt 0.4.0 blog announcement (shld be hitting rbloggers in the AM). Hope to retire coord_proj()soon ;-)
Sorry to post this without a solution, but I have to leave it for now.
I get an error from proj4::project for (seemingly) identical inputs when used in coord_proj(), but not directly.
It's likely to do with the coord_munching which I haven't explored yet - these polygons are both stretched around the edges of the laea map with these parameters, and that would likely be true for different polygons and projection combos. (It might be true for the old mapproj idioms for ggplot, but I never learnt to use them).
I don't know if this is a munching problem for ggalt or ggplot2, but either way I'm happy to help. A general "topojson"-like solution would be good in R, etc. etc.
Preparation.
The text was updated successfully, but these errors were encountered: