plot.prior.nifti: Plot prior

View source: R/estimate_prior.methods.R

plot.prior.niftiR Documentation

Plot prior

Description

Based on oro.nifti::image.

Usage

## S3 method for class 'prior.nifti'
plot(
  x,
  stat = c("mean", "sd", "var"),
  plane = c("axial", "sagittal", "coronal"),
  n_slices = 9,
  slices = NULL,
  var_method = c("non-negative", "unbiased"),
  ...
)

Arguments

x

The prior from estimate_prior.nifti

stat

"mean" (default), "sd", or "var". ("sd" will show the square root of the variance prior.)

plane, n_slices, slices

Anatomical plane and which slice indices to show. Default: 9 axial slices.

var_method

"non-negative" (default) or "unbiased"

...

Additional arguments to oro.nifti::image

Details

Consider using struct_prior to obtain the 3D volumes to plot with a different viewer function (e.g. from oro.nifti) if desired.

Value

The plot


BayesBrainMap documentation built on Aug. 8, 2025, 7:25 p.m.