A ggplot2 fill scale with neuroimaging-friendly defaults
scale_fill_neuro(
cmap = "grays",
range = c("robust", "data"),
probs = c(0.02, 0.98),
limits = NULL,
na.value = "transparent",
guide = "colorbar"
)A ggplot2 scale object.
Palette name or vector of colors. See [resolve_cmap()].
Either "robust" (quantiles) or "data" (min/max) to determine the default scale limits when `limits` is not provided.
Two-length numeric vector of quantiles for `range="robust"`.
Optional numeric limits (min, max). Overrides `range`.
Color for NA.
Legend guide (default "colorbar").