View source: R/plot-rgl-util.R
guides3d | R Documentation |
This function plots 3d guidelines for navigation on the surface of the sphere, includings the rotational axis and a polar coordinate system.
guides3d(
axis = 1.5,
polgrid = c(30, 30),
textPG = FALSE,
res = 1,
origin = c(0, 0, 0),
radius = authRadius,
drad = 1.1,
...
)
axis |
( |
polgrid |
( |
textPG |
( |
res |
( |
origin |
( |
radius |
( |
drad |
( |
... |
Additional arguments passed to |
The function is built on the openGL renderer of the R package rgl
.
The function does not return any value.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.