max_text_height | R Documentation |
Maximum Height of Text
max_text_height(text, gp = gpar(), rot = 0)
text |
A vector of text. |
gp |
Graphic parameters for text. |
rot |
Rotation of the text, scalar. |
It simply calculates maximum height of a list of textGrob
objects.
Note it ignores the text rotation.
A unit
object.
Zuguang Gu <z.gu@dkfz.de>
max_text_width
calculates the maximum width of a text vector.
x = c("a", "b\nb", "c\nc\nc")
max_text_height(x, gp = gpar(fontsize = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.