globeearth {globe} | R Documentation |
Plot Earth as 3D Globe
Description
Plots the Earth as a 3D sphere, seen from a specified viewpoint, with a map of the major coastline (by default).
Usage
globeearth(gdata, runlen, eye, top, ..., do.plot=TRUE)
Arguments
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 |
eye |
Viewpoint. A vector of length 3 (or a |
top |
Vector of length 3 (or a |
... |
Arguments passed to |
do.plot |
Logical value indicating whether to actually perform the plotting, or just to return the calculated coordinates. |
Details
The globe is drawn as it would be seen by a viewer at position
eye
, with the location top
at the top of the plot.
Only those parts of the coastline that are visible from eye
(on the side of the globe facing eye
) will be plotted.
Value
(Invisibly) a 4-column matrix containing the projected
coordinates of the segments of the coastline.
Author(s)
Adrian Baddeley and Tom Lawrence
See Also
Use globepoints
to add points to this plot,
globelines
to add lines to this plot,
globearrows
to add arrows to this plot,
and globedrawlat
or globedrawlong
to draw latitude and longitude curves.
Examples
globeearth()
globeearth(eye=place("madrid"))