View source: R/text_dimensions.R
text_dimensions | R Documentation |
Given the size of a graphic and the desired height in lines, returns the text size in points to use as the default text size.
text_dimensions(height, lines, units = "in", round = TRUE)
height |
Height of the graphic. |
lines |
Desired number of lines tall the graphic will be. |
units |
Units in which height and width are given. Only "in", "cm", and "mm" are currently supported. |
round |
Logical, whether to round the output to the nearest point.
Defaults to |
Size of font in points, rounded to the nearest integer
# Find the appropriate default text size for a graphic that fills a whole # 8.5x11 sheet of paper. text_dimensions(height = 8.5, lines = 45, units = "in")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.