rgl.sphgrid | R Documentation |
Creates a spherical plotting grid, within which further points can be added. Useful for astronomical plotting in particular, where this becomes the celestial sphere.
rgl.sphgrid(radius = 1, axis.val = TRUE, col.long = 'red', col.lat = 'blue',
col.rad = 'darkgreen', col.axes = 'grey50', col.grid = 'grey', deggap = 15,
longtype = "H", add = FALSE, radaxis = TRUE, radlab = 'Radius', col.radlab = 'black')
radius |
The radial extent of the spherical grid. |
axis.val |
Logical; show numeric values on the spherical grid. |
deggap |
The attempted separation between sherical grid lines in degrees. |
col.long |
The colour for longitude axis value labels. |
col.lat |
The colour for latitude axis value labels. |
col.rad |
The colour for radius axis value labels. |
col.axes |
The colour for axes (i.e. grid line next to labels). |
col.grid |
The colour for grid lines. |
longtype |
Specifies if longitudes should be labelled in hours (H- default) or degrees (D). |
add |
Should the grid be added to the current plot, or if FALSE a new rgl device is launched. |
radaxis |
Logical determining whether the sphere radius vector is drawn and labeled (default is TRUE). Pretty labeling is used to choose the location of ticks and labels. |
radlab |
If 'radaxis' is TRUE then the 'radlab' parameter determines the name of the label. |
col.radlab |
Colour of the radius title. |
This function should be called first, and can generally be used with only the declaration of radius to good effect.
No value, used for plotting side effect.
Aaron Robotham
rgl.sphgrid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.