is.small: Is a given unit 'small'?

View source: R/gtable_show-.r

is.smallR Documentation

Is a given unit 'small'?

Description

Uses a holistic approach to determine whether a unit is 'small', i.e. less than 1 cm, 1 line, 10 pt, or 0.4 in.

Usage

is.small(x)

Arguments

x

A unit.

Details

Based on arbitraily chosen definitions of 'small', this function can return TRUE or FALSE if a unit is 'small'.

So far, less than 1 cm, 1 line, 10 pt, or 0.4 inches is defined as being 'small'. Unresolved sizes, suchs as 'grobheight', 'grobwidth', or 'null' are not small. Units based on arithmetic, such as sum of multiple units, are also not small. NAs are returned for undecided sizes.

Value

Logical or NA.


stefanedwards/lemon documentation built on Jan. 14, 2024, 5:55 a.m.