rgl.Map | R Documentation |
Plots a map (from a Map object from package spData) on a unit sphere in an rgl window that can then be interactively rotated.
rgl.Map(Map, which, ...)
Map |
An |
which |
Vector indicating the subset of polygons to plot. |
... |
Additional arguments passed on to |
This assumes that the map is cordinates in degrees and plots the map on a unit sphere in an rgl window making a globe. You can then rotate the globe by clicking and dragging in the window.
There is no return value, this function is run for its side effect.
This function is still beta level software (some extra lines show up).
Greg Snow 538280@gmail.com
rgl
in package rgl, plot
method in
package sp
if(interactive()){
if(require("spData")) {
data(world)
rgl.Map(world$geom)
spheres3d(0,0,0,.999, col='lightblue')
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.