anatToVolume: Converts a column from an anatLm model into a volume for...

anatToVolumeR Documentation

Converts a column from an anatLm model into a volume for viewing or saving

Description

Converts a column from an anatLm model into a volume for viewing or saving

Usage

anatToVolume(anat, labelVolume, column, defs = attr(anat, "definitions"))

Arguments

anat

The anatModel

labelVolume

The volume containing the label definitions

column

String indicating which column to turn into a volume

defs

The path to the label definitions

Value

The volume with the values from the anatModel

Examples

## Not run: 
labelVol <- mincArray(mincGetVolume("some-labels.mnc"))
alm <- anatLm(~Sex, gfBasic, vols)
statsvol <- anatToVolume(hLm, labelVol, "F.statistic")
mincPlotSliceSeries(anatVol, statsvol, anatLow = 700, anatHigh = 1400, 
  low=1, high=10, symmetric = F, begin=50, end=-50)

## End(Not run)

Mouse-Imaging-Centre/RMINC documentation built on Nov. 12, 2022, 1:50 p.m.