| convert_units | R Documentation |
Converts measurements between different unit systems commonly used in graphics (inches, centimeters, millimeters, pixels, points).
convert_units(value, from = "in", to = "in", dpi = 96)
value |
Numeric value to convert. |
from |
Character string specifying source unit ("in", "cm", "mm", "px", "pt"). |
to |
Character string specifying target unit ("in", "cm", "mm", "px", "pt"). |
dpi |
Integer dots per inch for pixel conversions (default 96). |
Numeric value in target units.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.