anatomySliceIndicator: Add a slice indicator

Description Usage Arguments Value Examples

View source: R/pipeFuncs.R

Description

Adds an indicator of the slices used in the slice series, displayed on top of an anatomy slice.

Usage

1
2
3
anatomySliceIndicator(ssm, volume, low, high, dimension = NULL,
  slice = NULL, col = gray.colors(255, start = 0),
  lineColour = "green")

Arguments

ssm

The slice series info, usually passed along the pipe and specified by the user

volume

3D matrix representing the volume from which to draw the background slice.

low

Low end of colour for background slice.

high

High end of colour for background slice.

dimension

Dimension to use for background slice. Will pick sensible default if NULL.

slice

Slice number to use for background slice. Will pick sensible default if NULL.

col

Colour of the background slice. Defaults to gray.

lineColour

The colour of the slice indicator lines. Defaults to green.

Value

The ssm object augmented with a sliceIndicator

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
sliceSeries(nrow=5, begin=150, end=250) %>%
  anatomy(anatVol, low=700, high=1400) %>%
  overlay(stats, 2, 6, symmetric = T, alpha=0.1) %>%
  legend("t-statistics") %>%
  anatomySliceIndicator(anatVol, 700, 1400) %>%
  draw()

## End(Not run)

Mouse-Imaging-Centre/MRIcrotome documentation built on Feb. 27, 2020, 1:31 p.m.