flatearth: Plot the Earth as a 2D Projection

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Plots the Earth as specified 2D projection, with a map of the major coastline.

Usage

1
2
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 earth$coords. If NULL, no coastline is plotted.

runlen

Integer vector giving the number of vertices in each connected polygon in the coastline. Defaults to earth$runlen.

asp

Optional. Aspect ratio of the longitude and latitude scales.

...

Optional arguments passed to segments to control the plotting of the coastline.

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

globeearth.

Use flatpoints to plot points on the image.

Examples

1
2
flatearth("atlas")
flatearth("cylindrical")

baddstats/globe documentation built on May 11, 2019, 5:24 p.m.