is_abs_unit: Whether the unit object contains absolute unit

Description Usage Arguments Details Value Author(s) Examples

Description

Whether the unit object contains absolute unit

Usage

1

Arguments

u

a unit object

Details

Besides the normal absolute units (e.g. "mm", "inches"), this function simply treat grob objects as absolute units.

For a complex unit which is combination of different units, it is absolute only if all units included are absolute units.

Value

A logical value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
3
4
is_abs_unit(unit(1, "mm"))
is_abs_unit(unit(1, "npc"))
is_abs_unit(textGrob("foo"))
is_abs_unit(unit(1, "mm") + unit(1, "npc"))

eilslabs/ComplexHeatmap documentation built on May 16, 2019, 1:21 a.m.