contourSliceIndicator: 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 one or more contours.

Usage

1
2
3
contourSliceIndicator(ssm, volume, levels, dimension = NULL,
  slice = NULL, col = "red", lty = 1, lwd = 1,
  lineColour = "black")

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 contours.

levels

Levels at which to draw contours - a single number or a vector.

dimension

Dimension to use for contours. Will pick sensible default if NULL.

slice

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

col

The colour(s) for the contour(s). Defaults to red.

lty

The line type(s) for the contour(s). Defaults to 1.

lwd

The line width(s) for the contour(s). Defaults to 1.

lineColour

The colour for the slice indicator lines. Defaults to black.

Value

The ssm augmented with a contour slice indication

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") %>%
  contourSliceIndicator(anatVol, c(700, 1400)) %>%
  draw()

## End(Not run)

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