Learn R Programming

ComplexHeatmap (version 1.10.2)

max_text_height: Maximum height of text

Description

Maximum height of text

Usage

max_text_height(text, ...)

Arguments

text
a vector of text
...
pass to textGrob

Value

Details

Simply calculate maximum height of a list of textGrob objects.

See Also

max_text_height is always used to calculate the size of viewport when there is text annotation (anno_text)

Examples

Run this code
x = c("a", "b
b", "c
c
c")
max_text_height(x, gp = gpar(fontsize = 10))

Run the code above in your browser using DataLab