max_text_width.RdMaximum Width of Text
max_text_width(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 width of a list of textGrob objects.
Note it ignores the text rotation.
A unit object which is in "mm".
max_text_height calculates the maximum height of a text vector.
#> [1] 5.29166666666667mm