faces3d | R Documentation |
This function is used to plot the faces of either a trigrid
, hexagrid
or facelayer
object in 3D space.
faces3d(x, ...)
## S4 method for signature 'trigrid'
faces3d(x, ...)
## S4 method for signature 'hexagrid'
faces3d(x, ...)
## S4 method for signature 'facelayer'
faces3d(x, col = "heat", breaks = NULL, inclusive = TRUE, legend = TRUE, ...)
x |
The |
... |
Further graphical parameters passed to (see |
col |
( |
breaks |
( |
inclusive |
( |
legend |
( |
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
# faces3d(g)
h <- hexagrid(8)
b <- facelayer(h)
values(b)<- rnorm(length(b))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.