safe_unit: Functions to safely work with grid::unit() and grid::arrow()...

Description Usage Arguments

View source: R/safe_unit.R

Description

This is needed because 'unit(NULL, "inches")' gives an error, whereas we want 'NULL'.

Usage

1
2
3
safe_unit(x, units)

safe_arrow(angle, length, ends = "last", type = "closed")

Arguments

x

Size of 'grid::unit()' object

units

Units of 'grid::unit()' object

angle

Angle of arrow created by 'grid::arrow()'

length

Length of arrow created by 'grid::arrow()'

ends

See '?grid::arrow()'

type

See '?grid::arrow()'


MattCowgill/ggannotate documentation built on Oct. 9, 2021, 11:03 p.m.