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