heatmap.labels.cex: Return a cex value for text plotted in a viewport

Description Usage Arguments Value

View source: R/heatmap.R

Description

heatmap.labels.cexcomputes a cex value that can be used when plotting text in the current viewport. The assumption is that 'labels' is a character vector containing text strings that are meant to be drawn in the current viewport (either horizontally or vertically). This function will compute and return a cex value that can be passed to grid.text() such that the strings in 'labels' will fit in the current viewport when drawn on separate lines.

Usage

1
heatmap.labels.cex(labels, type = c("row.labels", "col.labels"))

Arguments

labels

character vector

type

either "row.labels" or "col.labels" indicating whether the labels are intended to be drawn horizontally or vertically.

Value

a cex value to be used when drawing the strings in 'labels' in the current viewport


vdumeaux/mixtR documentation built on May 3, 2019, 4:58 p.m.