Function to plot the edge of a map with different projections.
Arguments
- x
(
numeric
) Number of segments in the x (longitude) dimension.- y
(
numeric
) Number of segments in the y (latitude) dimension.- xmin
(
numeric
) Minimum value of x (longitude).- xmax
(
numeric
) Minimum value of x (longitude).- ymin
(
numeric
) Maximum value of y (latitude).- ymax
(
numeric
) Maximum value of y (latitude).- out
(
character
) Output format, either"sf"
or"sp"
. The default"sf"
returns simple feature geometries,"sp"
returnsSpatialPolygons
from thesp
package.
Examples
# requires rgdal
edge <- mapedge()
molledge <- st_transform(edge, "ESRI:54009")
plot(molledge)