max_text_height {ComplexHeatmap} | R Documentation

## Maximum height of text

### Description

Maximum height of text

### Usage

    max_text_height(text, ...)

### Arguments

`text` | a vector of text
`...` | pass to `textGrob`

### Details

Simply calculate maximum height of a list of `textGrob` objects.

### Value

A `unit` object.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### See Also

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

### Examples

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

[Package ComplexHeatmap version 1.20.0 Index]