getLabelWithUnit: getLabelWithUnit

View source: R/utilities-label.R

getLabelWithUnitR Documentation

getLabelWithUnit

Description

Get label with its unit within square brackets when available

Usage

getLabelWithUnit(label, unit = NULL)

Arguments

label

text of axis label

unit

Character value corresponding to unit of label

Value

label [unit] or label depending if unit is NULL or ""

Examples

getLabelWithUnit("Time", "min")

getLabelWithUnit("Label without unit")


Open-Systems-Pharmacology/TLF-Library documentation built on Feb. 8, 2025, 11:22 a.m.