<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Samuel,
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">/Kristian<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 9 Sep 2018, at 02:39, Samuel Mehr <<a href="mailto:sam@wjh.harvard.edu" class="">sam@wjh.harvard.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">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: <a href="https://proj4.org/operations/projections/eqearth.html" class="">https://proj4.org/operations/projections/eqearth.html</a>.</div>
<div dir="ltr" class=""><br class="">
</div>
<div class="">For instance, in the simple instance below I get the following error:</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><font face="monospace, monospace" class="">install.packages('proj4')</font></div>
<div class=""><font face="monospace, monospace" class="">install.packages('ggalt')</font></div>
<div class=""><font face="monospace, monospace" class="">library(proj4)</font></div>
<div class=""><font face="monospace, monospace" class="">library(ggalt)</font></div>
<div class=""><font face="monospace, monospace" class="">xy <- data.frame("long" = quakes$long, "lat" = quakes$lat)</font></div>
<div class=""><font face="monospace, monospace" class="">s <- project(xy, "+proj=eqearth")</font></div>
<div class="">
<div class=""><font face="monospace, monospace" color="#ff0000" class="">Error in project(xy, "+proj=eqearth") : unknown projection id</font></div>
</div>
</div>
<div class=""><font face="monospace, monospace" color="#ff0000" class=""><br class="">
</font></div>
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.
<div class=""><br class="">
</div>
<div class="">thanks!</div>
<div class="">Sam</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div style="font-size:12.8px" class="">
<div style="font-size:12.8px" class="">
<div style="font-size:12.8px" class="">
<div style="font-size:12.8px" class="">
<div style="font-size:12.8px" class="">
<div style="font-size:12.8px" class="">
<div style="font-size:12.8px" class="">
<div style="color:rgb(136,136,136);font-size:12.8px" class="">
<div dir="ltr" style="color:rgb(34,34,34);font-size:12.8px" class="">
<div dir="ltr" style="font-size:12.8px" class="">
<div dir="ltr" style="font-size:12.8px" class="">
<div dir="ltr" style="font-size:12.8px" class="">
<div dir="ltr" style="font-size:12.8px" class="">
<div dir="ltr" style="font-size:12.8px" class="">
<div dir="ltr" style="font-size:12.8px" class=""><font color="#666666" class="">Samuel Mehr</font></div>
<div style="font-size:12.8px" class=""><font color="#666666" class="">Department of Psychology</font></div>
<div dir="ltr" style="font-size:12.8px" class=""><span style="color:rgb(102,102,102);font-size:12.8px" class="">Harvard University</span><br class="">
</div>
<div dir="ltr" style="font-size:12.8px" class=""><font color="#666666" class=""><a href="http://themusiclab.org/" style="color:rgb(17,85,204)" target="_blank" class="">themusiclab.org</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
Proj mailing list<br class="">
<a href="mailto:Proj@lists.maptools.org" class="">Proj@lists.maptools.org</a><br class="">
http://lists.maptools.org/mailman/listinfo/proj</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>