max_text_height: Maximum Height of Text

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

Description

Maximum Height of Text

Usage

1

Arguments

text

A vector of text.

gp

Graphic parameters for text.

Details

It simply calculates maximum height of a list of textGrob objects.

Note it ignores the text rotation.

Value

A unit object.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

max_text_width calculates the maximum width of a text vector.

Examples

1
2
x = c("a", "b\nb", "c\nc\nc")
max_text_height(x, gp = gpar(fontsize = 10))

zhongmicai/complexHeatmap documentation built on May 7, 2019, 6:11 a.m.