rgl.sphgrid: Create a spherical plotting grid

rgl.sphgridR Documentation

Create a spherical plotting grid

Description

Creates a spherical plotting grid, within which further points can be added. Useful for astronomical plotting in particular, where this becomes the celestial sphere.

Usage

rgl.sphgrid(radius = 1, col.long='red', col.lat='blue', deggap = 15, longtype = "H",
add = FALSE, radaxis=TRUE, radlab='Radius')

Arguments

radius

The radial extent of the spherical grid.

deggap

The attempted separation between sherical grid lines in degrees.

col.long

The colour for longitude labels.

col.lat

The colour for latitude labels.

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.

Details

This function should be called first, and can generally be used with only the declaration of radius to good effect.

Value

No value, used for plotting side effect.

Author(s)

Aaron Robotham

Examples

rgl.sphgrid()

sphereplot documentation built on June 27, 2022, 9:06 a.m.