anatomy: Add anatomy slices

Description Usage Arguments Value Examples

View source: R/pipeFuncs.R

Description

Adds the anatomy slices, or anything that can serve as an underlay.

Usage

1
2
anatomy(ssm, volume = NULL, low = NULL, high = NULL,
  col = gray.colors(255, start = 0), alpha = NULL, name = "anatomy")

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 obtain slices. Can be either numbers or hexadecimal colours

low

Lower end of colour scale. Can be NULL if volume is a matrix of hexadecimals.

high

Upper end of colour scale. Can be NULL if volume is a matrix of hexadecimals.

col

The colour scale. Defaults to gray.

alpha

Value between 0 and 1, 0 being full transparent and 1 fully opaque.

name

Optional name.

Value

The slices series for continuation down the pipe.

Examples

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

## End(Not run)

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