sl.proj.mollweide | R Documentation |
Transform longitude/latitude coordinates according to approximated Mollweide projection (20th-order polynomial fit).
sl.proj.mollweide(lon, lat)
lon |
a scalar, vector, or array with |
lat |
a scalar, vector, or array with |
Since the original Mollweide projection requires implicit/iterative solving and can thus be expensive for large data sets, this function approximates the Mollweide projection by a 20th-order polynomial fit.
This function is intended mainly for internal use by the spheRlab base plotting functions (sl.plot.init()
, sl.plot.lines()
, etc.).
a list with elements x
and y
providing the projected coordinates in the approximate ranges -180<x<180
and -90<y<90
.
Helge Goessling
sl.plot.init
xy = sl.proj.mollweide(lon=seq(-180,180,30),lat=seq(-90,90,15))
plot(xy$x, xy$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.