Creates axial, coronal, and sagittal panels at a given coordinate with harmonized aesthetics. Returns (invisibly) the three ggplot objects after printing them in a single row using base grid (no extra deps).
plot_ortho(
vol,
coord = NULL,
unit = c("index", "mm"),
cmap = "grays",
range = c("robust", "data"),
probs = c(0.02, 0.98),
crosshair = TRUE,
annotate = TRUE,
downsample = 1L
)A 3D volume handled by `slice()`.
Length-3 coordinate of the target point. Interpreted as voxel indices by default; set `unit = "mm"` to convert using `coord_to_grid()` if available in your environment.
"index" or "mm".
Palette for the slices.
"robust" or "data" for intensity limits shared by all panels.
Quantiles for robust range.
Logical; draw crosshair lines.
Logical; add orientation glyphs.
Integer decimation for speed.