
3d plotting of an icosahedral grid, its subset or a data layer
Source:R/plot-rgl-grid.R, R/plot-rgl-facelayer.R
plot3d.RdThe function is built on the openGL renderer of the R package rgl. The default plotting window size is 800x800 pixels. In case you want to override this, please
use the function with defaultPar3d=FALSE after running par3d(windowRect=<>).
Usage
plot3d(x,...)
# S3 method for class 'trigrid'
plot3d(x, type = c("l"), sphere = NULL, add = FALSE, guides = TRUE, ...)
# S3 method for class 'hexagrid'
plot3d(
x,
type = c("l"),
sphere = NULL,
color = "gray70",
add = FALSE,
guides = TRUE,
...
)
# S3 method for class 'facelayer'
plot3d(x, type = "f", frame = TRUE, guides = TRUE, defaultPar3d = TRUE, ...)Arguments
- x
- type
(
character) Value specifying the part of the grid to be plotted by the call of the function."v"plots the grid vertex points."e"draws the grid edges."f"draws the grid faces."c"draws the face centers of the grid.- sphere
(
numeric) Defaults toNULL, adding a central white sphere to the plot. Assigning anumericvalue will draw a new sphere with the given radius,FALSEdoes not plot the sphere.- add
(
logical) Value indicating whether a new plot shall be drawn, or the currently plotted information should be added to the activergldevice.- guides
(
logical) Value indicating whether the guidelines of the polar coordinate system shall be plotted.- ...
Further graphical parameters passed to (see
plot3d).- color
(
character) Only for the hexagrid plotting: value/values passed to thefaces3dfunction instead ofcol.- frame
(
logical) If set to TRUE the grid line structure will be plotted.- defaultPar3d
(
logical) Flag indicating whether the default settings forpar3dare to be used(windowRect = c(50, 60, 800, 800), zoom=0.8).