max_text_width {ComplexHeatmap} | R Documentation |
Maximum Width of Text
max_text_width(text, gp = gpar())
text |
A vector of text. |
gp |
Graphic parameters for text. |
It simply calculates maximum width of a list of textGrob
objects.
Note it ignores the text rotation.
A unit
object which is in "mm".
Zuguang Gu <z.gu@dkfz.de>
max_text_height
calculates the maximum height of a text vector.
x = c("a", "bb", "ccc") max_text_width(x, gp = gpar(fontsize = 10))