Plots a named projection from a segmentation using the ontology color scheme

seg_projection_plot(
  segmentation,
  name,
  plane,
  minsize = 10,
  smooth = TRUE,
  smoothness = 3,
  show_labels = FALSE,
  remove_axes = TRUE
)

Arguments

segmentation

a segmentation class object.

name

character, name of the projection to be plotted from the segmentation slot.

plane

character, name of the plane (one of `sagittal`, `coronal`, or `axial`)

minsize

numeric, minimum number of vertices to draw a polygon. Default is 10.

smooth

logical, should polygons be smoothed? Default is TRUE

smoothness

numeric, the kernel bandwidth for kernel smoothing. Default is 3.

show_labels

logical, should structure acronyms be shown as labels? Default is FALSE

remove_axes

logical, should axes be removed? Default is TRUE

Value

a `ggplot` plot of the projection in both directions