Test Whether it is an Absolute Unit
Test Whether it is an Absolute Unit
is_abs_unit(u)
u |
A |
Besides the normal absolute units (e.g. "mm", "inches"), this function
simply assumes 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.
A logical value.
Zuguang Gu <z.gu@dkfz.de>
is_abs_unit(unit(1, "mm")) is_abs_unit(unit(1, "npc")) is_abs_unit(grobWidth(textGrob("foo"))) is_abs_unit(unit(1, "mm") + unit(1, "npc"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.