View source: R/cylinder-bundle-geometry.R
autoplot.bundle | R Documentation |
Plots a cross section of a cylinder bundle from an object of class bundle
as generated by simulate_bundle()
using
ggplot2.
## S3 method for class 'bundle'
autoplot(object, grid_size = 100L, ...)
object |
An object of class |
grid_size |
An integer value specifying the number of points on which
the unit circle should be discretized to draw the spheres. Defaults to
|
... |
Additional arguments to be passed to the |
A ggplot2::ggplot()
object.
density <- 0.5
voxel_size <- 5 # micrometers
withr::with_seed(1234, {
out <- simulate_bundle(density, voxel_size)
})
ggplot2::autoplot(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.