powered by
Performs a cartographic mollweide projection from polar coordinates (latitude/longitude) to X-Y map coordinates
mollweide_projection(latitude, longitude, meridian)
X/Y coordinates
Latitude (aka declination) of points
Longitude (aka right ascension) of points
The x=0 center of the plot
This function uses the "Newton-Raphson with fast convergence everywhere" algorithm.
Latitude and longitude should be in units of radians not degrees. Latitude ranges from +/- pi/2 and longitude ranges from +/- pi.
https://en.wikipedia.org/wiki/Talk:Mollweide_projection
longitude <- pi / 4 latitude <- pi / 4 mollweide_projection(longitude, latitude, meridian = 0)
Run the code above in your browser using DataLab