addXlabTable: Create Tabular Environment from Matrix and Add it to Bottom...

Description Usage Arguments Author(s) Examples

Description

This is a helper function intended to add tabular environments as X-axis labels representing specific structure, e.g. formulas in boxplots. Function takes a matrix and constructs a tabular environment from this.

Usage

1
2
addXlabTable(mat, merge = TRUE, bmargin = 0.025, Label = list(),
  Text = list())

Arguments

mat

(matrix) representing the table which will be added to lower margin; rows represent factors, columns represent factor-levels, rownames will be re-used as rownames of the table in the plot

merge

(logial) TRUE = neighboring cells of 'mat' with the same content will be merged to a wider cell

bmargin

(numeric) value representing the height of the (b)ottom margin as proportion of the total height of the figure region. Note, that this will determine the height of the table in the bottom margin also depending on the amount of space available there.

Label

(list) specifying all parameters applicable in function 'text', x- and y-values will be set automatically for factor-labels (rows of the table)

Text

(list) specifying all parameters applicable in function 'text', x- and y-values will be set automatically for character strings appearing in the cells of the table

Author(s)

Andre Schuetzenmeister [email protected]

Examples

1
2
3
4
5
6
7
8
bp  <- BoxPlot(mpg~cyl:gear, mtcars, Xaxis=NULL)
mat <- getMatrix(mpg~cyl:gear, bp$names)
addXlabTable(mat)

# changing appearance for labels and cell-content

bp  <- BoxPlot(mpg~cyl:gear, mtcars, Xaxis=NULL)
addXlabTable(mat, Label=list(font=2, col="red"), Text=list(font=3, col="blue"))

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