max_text_width {ComplexHeatmap} | R Documentation |
Maximum width of text
max_text_width(text, ...)
text |
a vector of text |
... |
pass to |
Simply calculate maximum width of a list of textGrob
objects.
A unit
object.
Zuguang Gu <z.gu@dkfz.de>
max_text_width
is always used to calculate the size of viewport when there is text annotation (anno_text
)
x = c("a", "bb", "ccc") max_text_width(x, gp = gpar(fontsize = 10))