Learn R Programming

ggspectra (version 0.3.7)

s.e.irrad_label: spectral irradiance axis labels

Description

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

s.e.irrad_label(
  unit.exponent = 0,
  format = getOption("photobiology.math", default = "R.expression"),
  label.text = axis_labels()[["s.e.irrad"]],
  scaled = FALSE,
  normalized = FALSE
)

s.q.irrad_label( unit.exponent = ifelse(normalized, 0, -6), format = getOption("photobiology.math", default = "R.expression"), label.text = axis_labels()[["s.q.irrad"]], scaled = FALSE, normalized = FALSE )

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 TRUE relative units are assumed.

normalized

logical (FALSE) or numeric Normalization wavelength in manometers (nm).

Value

a character string or an R expression.

Examples

Run this code
# NOT RUN {
counts_label()
counts_label("R.expression")
counts_label("LaTeX")

# }

Run the code above in your browser using DataLab