plot3d | R Documentation |
The 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=<>)
.
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, ...)
x |
( |
type |
( |
sphere |
( |
add |
( |
guides |
( |
... |
Further graphical parameters passed to (see |
color |
( |
frame |
( |
defaultPar3d |
( |
An object of class function
of length 1.
The function does not return any value.
# create a hexagonal grid
g <- hexagrid(c(2,2))
# plot the grid in 3d space
# plot3d(g, col="blue")
# make a subset to select faces
subG <- subset(g, c("F5", "F2"))
# plot the subset defined above
# plot3d(subG, type="f", col=c("orange"), add=TRUE, lwd=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.