Skip to contents

'ggplot2' draws a line width of 1 as 0.75 mm (R's line width unit is 1/96 inch); this converts a width given in typographic points.

Usage

PtLinewidth(pt)

Arguments

pt

Numeric line width in points.

Value

Numeric 'ggplot2' linewidth.

Examples

PtLinewidth(0.5)
#> [1] 0.2343065