Learn R Programming

globe (version 1.2-0)

flatpoints:

Description

Plots points on a 2D projection of the Earth created using flatearth, taking into account the projection used.

Usage

flatpoints(loc, projection = c("atlas", "cylindrical"), ..., do.plot)

Arguments

loc
A data frame containing latitudes and longitudes of points to be plotted.
projection
The projection that was used in creating the 2D image.
Other arguments usually used when plotting points.
do.plot
Logical value indicating whether to actually perform the plotting, or just to return the calculated coordinates.

Value

(Invisibly) a list(x,y) giving the plotted positions of the points.

Details

If the value of projection used in this function is not the one used to create the image, then the points will not be plotted.

See Also

flatearth

Examples

Run this code
flatearth("atlas")
flatpoints(place("nedlands"))

Run the code above in your browser using DataLab