Learn R Programming

BayesBrainMap (version 0.2.0)

plot.prior.nifti: Plot prior

Description

Based on oro.nifti::image.

Usage

# S3 method for prior.nifti
plot(
  x,
  what = c("maps", "FC"),
  stat = c("mean", "sd", "var"),
  FC_method = c("empirical", "IW", "Chol", "none"),
  var_method = c("non-negative", "unbiased"),
  plane = c("axial", "sagittal", "coronal"),
  n_slices = 9,
  slices = NULL,
  ...
)

Value

The plot

Arguments

x

The prior from estimate_prior.nifti

what

The "maps" (default) on the brain, or the "FC" matrix. If both are desired, use two separate plot calls to first plot the maps and then plot the FC.

If "FC", the default color scale will be from blue (-1) to red (1). This can be changed with the colFUN argument to plot_FC_gg.

stat

Which prior statistic to plot: the "mean" (default), "sd" for the square root of the variance template, or "var" for the variance template.

FC_method

If what=="FC": empirical ("empirical") (default), Inverse-Wishart ("IW"), or Cholesky ("Chol").

var_method

"non-negative" (default) or "unbiased", for the variance estimate of the maps. Note that FC variance estimates are always non-negative.

plane, n_slices, slices

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

...

Additional arguments to oro.nifti::image if what=="maps", or plot_FC_gg if what=="FC".

Details

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