Learn R Programming

midi (version 0.1.0)

plot3d: Plots a 3D representation of a cylinder bundle using plotly

Description

Plots a 3D representation of a cylinder bundle from an object of class bundle as generated by simulate_bundle() using plotly.

Usage

plot3d(b, show_linear_mesh = FALSE)

Value

An HTML widget of class plotly::plotly storing the 3D visualization of the cylinder bundle.

Arguments

b

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

show_linear_mesh

A logical value indicating whether the linear mesh of each cylinder should be displayed. Defaults to FALSE for computational efficiency.

Examples

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

Run the code above in your browser using DataLab