px | R Documentation |
Convert from any units to pixels
px(x, units = "pts", res = 96, round = TRUE)
x |
A numeric vector |
units |
A character vector specifying the units for the corresponding numeric values. |
res |
Pixels per inch to use as resulution. Defaults to 96, because this is a common web font conversion factor. |
round |
Whether to round to the nearest full pixel. Defaults to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.