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, 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')

Arguments

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.

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()

asgr/sphereplot documentation built on Sept. 5, 2023, 4:58 a.m.