View source: R/utilities-label.R
getLabelWithUnit | R Documentation |
Get label with its unit within square brackets when available
getLabelWithUnit(label, unit = NULL)
label |
text of axis label |
unit |
Character value corresponding to unit of |
label [unit]
or label
depending if unit
is NULL
or ""
getLabelWithUnit("Time", "min")
getLabelWithUnit("Label without unit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.