wire3d | R Documentation |
This function directs the wireframe plot based on the plotengine backend selected.
wire3d(
x,
...,
add = TRUE,
gridlines = FALSE,
plotengine = getOption("nat.plotengine")
)
## S3 method for class 'hxsurf'
wire3d(x, Regions = NULL, ...)
## S3 method for class 'mesh3d'
wire3d(x, ..., front = "lines", back = "lines")
## S3 method for class 'shapelist3d'
wire3d(x, override = TRUE, ...)
x |
object of type 'mesh3d' (triangular mesh or quad mesh), 'hxsurf' or 'shapelist3d' |
... |
Additional arguments passed to |
add |
whether to add objects to an existing plot |
gridlines |
Whether to display gridlines when using plotly as the backend plotting
engine (default: |
plotengine |
Whether to use plotting backend of 'rgl' or 'plotly' |
Regions |
When |
front, back |
Material properties for rendering. |
override |
should the parameters specified here override those stored in the object? |
wire3d
library(alphashape3d)
kcs20.a=ashape3d(xyzmatrix(kcs20), alpha = 10)
plot(kcs20.a)
# convert to mesh3d
kcs20.mesh=as.mesh3d(kcs20.a, meshColor = "edges")
# For plotly..
options(nat.plotengine = 'plotly')
wire3d(kcs20.mesh,alpha = 0.1, add = FALSE, col = 'blue')
# For rgl..
options(nat.plotengine = 'rgl')
wire3d(kcs20.mesh,alpha = 0.1, add = FALSE, col = 'blue')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.