Chemical species names for plots and tables
ion_labeller.Rd
ion_labeller
and R_labeller
converts a character string
containing chemical species names in a latex string or expression. The
stat_labeller
function generates labels for statistics in tables
(latex) or on plots (expressions).
Usage
ion_labeller(ion, label = "latex")
R_labeller(ion1, ion2, label = "latex")
stat_labeller(var, org, stat, value, label = "latex")
Arguments
- ion
A chemical species character string
- label
Character string indicating whether the output should be
"latex"
or an expression ("expr"
).- ion1
A chemical species character string (for isotope ratios the rare isotope).
- ion2
A chemical species character string (for isotope ratios the common isotope).
- var
A character string for the variable, either
"X"
for single ions or"R"
for ion ratios.- org
A character string for the origin of a derived variable, e.g., R.
- stat
A character string for the statistic following convention of e.g.
point::names_stat_X
.- value
The numeric value for the statistic result.