Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

# requires rgdal
edge <- mapedge()
molledge <- spTransform(edge, CRS("+proj=moll"))

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.