flatearth {globe} | R Documentation |
Plot the Earth as a 2D Projection
Description
Plots the Earth as specified 2D projection, with a map of the major coastline.
Usage
flatearth(projection = c("atlas", "cylindrical"), gdata, runlen, asp = NULL,
..., do.plot=TRUE)
Arguments
projection |
The type of 2D projection to be performed. |
gdata |
Two-column matrix of latitude, longitude coordinates of
coastline vertices. Defaults to |
runlen |
Integer vector giving the number of vertices in each connected
polygon in the coastline. Defaults to |
asp |
Optional. Aspect ratio of the longitude and latitude scales. |
... |
Optional arguments passed to |
do.plot |
Logical value indicating whether to actually perform the plotting, or just to return the calculated coordinates. |
Details
In the atlas
projection, the continents are
plotted in longitude, latitude coordinates without any correction.
In the cylindrical
projection, the latitude is transformed
so that equal areas on the sphere are transformed onto equal areas
on the plot.
Value
(Invisibly) a 4-column matrix containing the projected (x,y)
coordinates of the segments of the coastline.
Author(s)
Adrian Baddeley and Tom Lawrence
See Also
Use flatpoints
to plot points on the image.
Examples
flatearth("atlas")
flatearth("cylindrical")