R/neuron-plot.R
Plot a bounding box in 3D
# S3 method for boundingbox plot3d(x, ...)
x | the |
---|---|
... | additional arguments to pass to |
A list of RGL object IDs.
#> [,1] [,2] [,3] #> [1,] 284.5940 24.1869 21.4379 #> [2,] 404.6951 122.9557 102.8015 #> attr(,"class") #> [1] "boundingbox"#> [,1] [,2] [,3] #> [1,] 285.0244 25.2430 21.4379 #> [2,] 390.7747 114.6351 98.3324 #> attr(,"class") #> [1] "boundingbox"# 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))