Generate axis labels in SI units, using SI scale factors. Output can be selected as character, expression (R default devices) or LaTeX (for tikz device).
Usage
counts_label(
unit.exponent = 3,
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels(append = ifelse(axis.symbols, ",", ""))[["counts"]],
scaled = FALSE,
normalized = FALSE,
axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE)
)Arguments
- unit.exponent
integer
- format
character string, "R", "R.expresion", "R.character", or "LaTeX".
- label.text
character Textual portion of the labels.
- scaled
logical If
TRUErelative units are assumed.- normalized
logical (
FALSE) or numeric Normalization wavelength in manometers (nm).- axis.symbols
logical If
TRUEsymbols of the quantities are added to thename. Supported only byformat = "R.expression".
Examples
counts_label()
#> "Pixel response," ~ italic(N)[lambda] ~ (10^{
#> 3
#> } * plain(counts))
counts_label("R.expression")
#> "Pixel response," ~ italic(N)[lambda] ~ (10^{
#> "R.expression"
#> } * plain(counts))
counts_label("LaTeX")
#> "Pixel response," ~ italic(N)[lambda] ~ (10^{
#> "LaTeX"
#> } * plain(counts))
