rgl.sphpoints: Add points to spherical plots

View source: R/rgl.sphpoints.R

rgl.sphpointsR Documentation

Add points to spherical plots

Description

This function allows the native plotting of spherical coordinates (in degrees of radians) and is expected to be used in conjunction with rgl.sphgrid, which produces the spherical grid.

Usage

rgl.sphpoints(long, lat, radius=1, deg = TRUE, col = 'black', ...)

Arguments

long

Numeric vector; longitude values, can also contain a matrix of long, lat and radius (in that order).

lat

Numeric vector; latitude values.

radius

Numeric vector; radius values.

deg

Logical; specifies if input is in degrees (default) or radians.

col

Specifies point colour.

...

Other arguments carried to points3d.

Details

This function uses sph2car in conjunction with points3d to plot points on a spherical coordinate system.

Value

No value, used for plotting side effect.

Author(s)

Aaron Robotham

See Also

rgl.sphgrid,rgl.sphcirc,rgl.sphpoints,rgl.sphtext,rgl.sphsun,rgl.sphMW,pointsphere,sph2car,car2sph

Examples

rgl.sphgrid()
rgl.sphpoints(40,50,0.5,deg=TRUE,col='red',cex=2)

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