Description Usage Arguments Details Value Author(s) See Also Examples
Plots the Earth as a 3D sphere, seen from a specified viewpoint, with a map of the major coastline (by default).
1 | globeearth(gdata, runlen, eye, top, ..., do.plot=TRUE)
|
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. |
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.
(Invisibly) a 4-column matrix containing the projected (x,y) coordinates of the segments of the coastline.
Adrian Baddeley and Tom Lawrence
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.
1 2 | globeearth()
globeearth(eye=place("madrid"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.