[Proj] using Equal Earth in R

Kristian Evers kreve at sdfe.dk
Sun Sep 9 01:50:06 EST 2018


Samuel,

I can only speak to the PROJ part of your question, anything concerning R you are likely to get better answers in a different forum.

The Equal Earth projection is available in PROJ 5.2 which will be released within the next week or so. So unless you want to faff about with compiling you own version and linking it to R I am afraid what you want is not possible. Yet anyway. I assume it will take some time before the R guys and whatever package management you are using adopt the new PROJ version.

/Kristian

On 9 Sep 2018, at 02:39, Samuel Mehr <sam at wjh.harvard.edu<mailto:sam at wjh.harvard.edu>> wrote:

Hello, I am hoping to use the Equal Earth projection in some visualizations produced in R, but I can't seem to get the projection to load in R. I saw that it is listed as available from proj4 here: https://proj4.org/operations/projections/eqearth.html.

For instance, in the simple instance below I get the following error:

install.packages('proj4')
install.packages('ggalt')
library(proj4)
library(ggalt)
xy <- data.frame("long" = quakes$long, "lat" = quakes$lat)
s <- project(xy, "+proj=eqearth")
Error in project(xy, "+proj=eqearth") : unknown projection id

Are there other packages required to use this projection? Or is this an error on my part, or a bug? I do practically zero geographic visualization, just need this for a figure and thought it would be cool to use the new Equal Earth projection.

thanks!
Sam


--
Samuel Mehr
Department of Psychology
Harvard University
themusiclab.org<http://themusiclab.org/>
_______________________________________________
Proj mailing list
Proj at lists.maptools.org<mailto:Proj at lists.maptools.org>
http://lists.maptools.org/mailman/listinfo/proj

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/proj/attachments/20180909/76869f41/attachment.htm 


More information about the Proj mailing list