pt_to_mm: Convert from pt to mm for ggplot2

Description Usage Examples

View source: R/pt_to_mm.R

Description

ggplot2 uses mm by default for line units, this function takes the desired thickness in pt and converts to mm.

Usage

1
pt_to_mm(x_pt)

Examples

1
ggplot(mtcars, aes(wt, mpg)) + geom_line(size=pt_to_mm(0.75))

zmorrissey/commonR documentation built on Sept. 15, 2021, 2:12 p.m.