plot3d.boundingbox | R Documentation |
Plot a bounding box in 3D
## S3 method for class 'boundingbox'
plot3d(
x,
col = "black",
gridlines = FALSE,
plotengine = getOption("nat.plotengine"),
...
)
x |
the |
col |
The colour of the bounding box lines (default 'black') |
gridlines |
Whether to display gridlines when using plotly as the backend plotting
engine (default: |
plotengine |
the plotting backend engine to use either 'rgl' or 'plotly'. |
... |
additional arguments to pass to |
A list of rgl object IDs (as returned by
segments3d
) or a
plotly
object.
boundingbox
# find the bounding box of all the neurons in a list
boundingbox(kcs20)
boundingbox(kcs20[1:3])
# plot those neurons
plot3d(kcs20)
# ... with their bounding box
plot3d(boundingbox(kcs20))
plot3d(kcs20)
# plot bounding box (in matching colours) for each neuron
# NB makes use of nlapply/neuronlist in slightly unsusual context -
# plot3d.neuronlist can cope with lists containing anything with
# a valid plot3d method.
plot3d(nlapply(kcs20,boundingbox))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.