Convert font sizes in pt to mm

pt2mm(pt)

Arguments

pt

A numeric font size in pt.

Value

A numeric font size in mm.

Examples

pt2mm(12)
#> [1] 4.233333

ggplot(mtcars) +
  geom_text(aes(x = mpg, y = wt, label = rownames(mtcars)),
            size = pt2mm(7))