50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

chronosphere (version 0.4.0)

mapedge: Function to quickly draft the edge of the equirectangular projection

Description

Function to plot the edge of a map with different projections.

Usage

mapedge(x = 360, y = 180, xmin = -180, xmax = 180, ymin = -90, ymax = 90)

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).

Value

A SpatialPolygons class object.

Examples

Run this code
# NOT RUN {
# requires rgdal
edge <- mapedge()
molledge <- spTransform(edge, CRS("+proj=moll"))

# }

Run the code above in your browser using DataLab