ggspectra (version 0.3.12)

scale_y_A_continuous: Absorbance y-scale

Description

Scale y continuous with defaults suitable for spectral absorbance.

Usage

scale_y_A_continuous(
  unit.exponent = 0,
  name = A_label(unit.exponent = unit.exponent, format = format, label.text = label.text,
    scaled = scaled, normalized = round(normalized, 1), Tfr.type = Tfr.type),
  labels = SI_pl_format(exponent = unit.exponent),
  format = getOption("photobiology.math", default = "R.expression"),
  label.text = NULL,
  scaled = FALSE,
  normalized = FALSE,
  Tfr.type,
  ...
)

scale_y_A_internal_continuous( unit.exponent = 0, name = A_label(unit.exponent = unit.exponent, format = format, label.text = label.text, scaled = scaled, normalized = round(normalized, 1), Tfr.type = "internal"), labels = SI_pl_format(exponent = unit.exponent), format = getOption("photobiology.math", default = "R.expression"), label.text = NULL, scaled = FALSE, normalized = FALSE, ... )

scale_y_A_total_continuous( unit.exponent = 0, name = A_label(unit.exponent = unit.exponent, format = format, label.text = label.text, scaled = scaled, normalized = round(normalized, 1), Tfr.type = "total"), labels = SI_pl_format(exponent = unit.exponent), format = getOption("photobiology.math", default = "R.expression"), label.text = NULL, scaled = FALSE, normalized = FALSE, ... )

Arguments

unit.exponent

integer

name

The name of the scale, used for the axis-label.

labels

The tick labels or a function to generate them.

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).

Tfr.type

character, either "total" or "internal".

...

other named arguments passed to scale_y_continuous

Examples

Run this code

ggplot(yellow_gel.spct, plot.qty = "absorbance") +
  geom_line() +
  scale_y_A_continuous(Tfr.type = getTfrType(yellow_gel.spct)) +
  scale_x_wl_continuous()

ggplot(yellow_gel.spct, plot.qty = "absorbance") +
  geom_line() +
  scale_y_A_internal_continuous() +
  scale_x_wl_continuous()

ggplot(yellow_gel.spct, plot.qty = "absorbance") +
  geom_line() +
  scale_y_A_total_continuous() +
  scale_x_wl_continuous()

Run the code above in your browser using DataLab