Learn R Programming

neuroim2 (version 0.8.5)

annotate_orientation: Add L/R and A/P/S/I annotations (optional)

Description

Add L/R and A/P/S/I annotations (optional)

Usage

annotate_orientation(
  plane = c("axial", "coronal", "sagittal"),
  dims,
  gp = grid::gpar(col = "white", cex = 0.9, fontface = "bold")
)

Value

A ggplot2 layer with annotation_custom grobs

Arguments

plane

"axial", "coronal", or "sagittal"

dims

c(nrow, ncol) of the slice matrix

gp

grid::gpar style