getMatrix: Construct Matrix from Formula and Names.

Description Usage Arguments Author(s) Examples

Description

Function is a helper function for adding tables as X-axis labels representing the structure of crossed (nested) factor-levels.

Usage

1
getMatrix(form, labels, split="\\.")

Arguments

form

(formula) object from which the matrix should be constructed

labels

(character) the 'names" element of the list returned by e.g. BoxPlot or boxplot

split

(character) symbol or string specifying the split symbol or string separating factor-levels in 'labels'

Author(s)

Andre Schuetzenmeister [email protected]

Examples

1
2
3
bp  <- boxplot(mpg~cyl:gear, mtcars, plot=FALSE)
mat <- getMatrix(mpg~cyl:gear, bp$names)
mat

lengning/gClinBiomarker documentation built on May 9, 2019, 2:55 p.m.