guides3d {icosa} | R Documentation |
Guides for 3d spherical plotting.
Description
This function plots 3d guidelines for navigation on the surface of the sphere, includings the rotational axis and a polar coordinate system.
Usage
guides3d(
axis = 1.5,
polgrid = c(30, 30),
textPG = FALSE,
res = 1,
origin = c(0, 0, 0),
radius = authRadius,
drad = 1.1,
...
)
Arguments
axis |
( |
polgrid |
( |
textPG |
( |
res |
( |
origin |
( |
radius |
( |
drad |
( |
... |
Additional arguments passed to |
Details
The function is built on the openGL renderer of the R package rgl
.
Value
The function does not return any value.
Examples
# create a hexagonal grid
g <- hexagrid(c(2,2))
# plot the grid in 3d space
# plot3d(g, guides=FALSE)
# plot the rotational axis in blue
# guides3d(axis=2, polgrid=NULL, col="blue")
# plot the polar grid at 10 degree resolution
# guides3d(axis=NULL, polgrid=c(10,10), col="red")
# plot some coordinates
# guides3d(axis=NULL, polgrid=c(30,30), textPG=TRUE, col="orange", cex=1.4)