powered by
Plots a cross section of a cylinder bundle from an object of class bundle as generated by simulate_bundle() using ggplot2.
bundle
simulate_bundle()
# S3 method for bundle autoplot(object, grid_size = 100L, ...)
A ggplot2::ggplot() object.
ggplot2::ggplot()
An object of class bundle as generated by simulate_bundle().
An integer value specifying the number of points on which the unit circle should be discretized to draw the spheres. Defaults to 100L.
100L
Additional arguments to be passed to the ggplot2::autoplot() method.
ggplot2::autoplot()
density <- 0.5 voxel_size <- 5 # micrometers withr::with_seed(1234, { out <- simulate_bundle(density, voxel_size) }) ggplot2::autoplot(out)
Run the code above in your browser using DataLab