Learn R Programming

midi (version 0.1.0)

plot.bundle: Plots a cross section of a cylinder bundle

Description

Plots a cross section of a cylinder bundle

Usage

# S3 method for bundle
plot(x, grid_size = 100L, ...)

Value

Nothing.

Arguments

x

An object of class bundle as generated by simulate_bundle().

grid_size

An integer value specifying the number of points on which the unit circle should be discretized to draw the spheres. Defaults to 100L.

...

Additional arguments to be passed to the ggplot2::autoplot() method.

Examples

Run this code
density <- 0.5
voxel_size <- 5 # micrometers
withr::with_seed(1234, {
  out <- simulate_bundle(density, voxel_size)
})
plot(out)

Run the code above in your browser using DataLab