grobify: Turn the slice series into grobs.

Description Usage Arguments Value Examples

View source: R/pipeFuncs.R

Description

Takes the slice series, creates grobs where necessary, and returns a gTree. Can then be incorporated into other grid functions.

Usage

1
2
grobify(ssm, layout = "column", titlePars = gpar(),
  legendPars = gpar(), bgCol = NULL)

Arguments

ssm

The slice series

layout

Whether to lay out by column (the default) or by row.

titlePars

A gpar list configuring text grobs when generating titles. useful for setting e.g. fontsize and col

legendPars

A gpar list configuring text grobs when generating legends useful for setting e.g. fontsize and col

bgCol

Either NULL or a string indicating what colour the figure background should be.

Value

A gTree object with the figure, to be drawn with grid.draw

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
sliceSeriesGridTree <- 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) %>%
  grobify()

## End(Not run)

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