max_text_width: Maximum width of text

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Maximum width of text

Usage

1

Arguments

text

a vector of text

...

pass to textGrob

Details

Simply calculate maximum width of a list of textGrob objects.

Value

A unit object.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

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

Examples

1
2
x = c("a", "bb", "ccc")
max_text_width(x, gp = gpar(fontsize = 10))

eilslabs/ComplexHeatmap documentation built on May 16, 2019, 1:21 a.m.