plot3d.boundingbox: Plot a bounding box in 3D

View source: R/neuron-plot.R

plot3d.boundingboxR Documentation

Plot a bounding box in 3D

Description

Plot a bounding box in 3D

Usage

## S3 method for class 'boundingbox'
plot3d(x, ...)

Arguments

x

the boundingbox object to plot.

...

additional arguments to pass to segments3d.

Value

A list of RGL object IDs.

See Also

boundingbox

Examples

# 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))



nat documentation built on May 29, 2024, 10:36 a.m.