powered by
Function to plot the edge of a map with different projections.
mapedge(x = 360, y = 180, xmin = -180, xmax = 180, ymin = -90, ymax = 90)
A SpatialPolygons class object.
SpatialPolygons
(numeric) Number of segments in the x (longitude) dimension.
numeric
(numeric) Number of segments in the y (latitude) dimension.
(numeric) Minimum value of x (longitude).
(numeric) Maximum value of y (latitude).
# requires rgdal edge <- mapedge() molledge <- spTransform(edge, CRS("+proj=moll"))
Run the code above in your browser using DataLab