Learn R Programming

ggspectra (version 0.3.13)

s.e.response_label: spectral response and action axis labels

Description

Generate axis labels for response or action spectra 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.response_label(
  unit.exponent = 0,
  format = getOption("photobiology.math", default = "R.expression"),
  label.text = axis_labels()[["s.e.response"]],
  scaled = FALSE,
  normalized = FALSE,
  axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE)
)

s.q.response_label( unit.exponent = 0, format = getOption("photobiology.math", default = "R.expression"), label.text = axis_labels()[["s.q.response"]], scaled = FALSE, normalized = FALSE, axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE) )

s.e.action_label( unit.exponent = 0, format = getOption("photobiology.math", default = "R.expression"), label.text = axis_labels()[["s.e.action"]], scaled = FALSE, normalized = FALSE, axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE) )

s.q.action_label( unit.exponent = 0, format = getOption("photobiology.math", default = "R.expression"), label.text = axis_labels()[["s.q.action"]], scaled = FALSE, normalized = FALSE, axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE) )

Value

a character string or an R expression.

Arguments

unit.exponent

integer

format

character string, "R", "R.expression", "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).

axis.symbols

logical If TRUE symbols of the quantities are added to the name. Supported only by format = "R.expression".

Examples

Run this code

s.e.response_label()
s.e.response_label(format = "R.expression")
s.e.response_label(format = "R.character")
s.e.response_label(format = "LaTeX")
s.e.response_label(unit.exponent = 3, format = "R.character")
s.q.response_label(format = "R.character")
s.e.action_label(format = "R.character")
s.q.action_label(format = "R.character")
s.e.response_label(scaled = TRUE)
s.e.response_label(scaled = TRUE, format = "R.character")
s.e.response_label(scaled = TRUE, format = "LaTeX")
s.e.response_label(normalized = 300)
s.e.response_label(normalized = 300, format = "R.character")
s.e.response_label(normalized = 300, format = "LaTeX")
s.q.response_label(scaled = TRUE)
s.q.response_label(scaled = TRUE, format = "R.character")
s.q.response_label(scaled = TRUE, format = "LaTeX")
s.q.response_label(normalized = 300)
s.q.response_label(normalized = 300, format = "R.character")
s.q.response_label(normalized = 300, format = "LaTeX")

Run the code above in your browser using DataLab