Learn R Programming

ggspectra (version 0.3.6)

scale_y_A_internal_continuous: Absorbance y-scale

Description

Scale y continuous with defaults suitable for spectral absorbance.

Usage

scale_y_A_internal_continuous(
  unit.exponent = 0,
  name = A_internal_label(unit.exponent = unit.exponent),
  labels = SI_pl_format(exponent = unit.exponent),
  ...
)

scale_y_A_total_continuous( unit.exponent = 0, name = A_total_label(unit.exponent = unit.exponent), labels = SI_pl_format(exponent = unit.exponent), ... )

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.

...

other named arguments passed to scale_y_continuous

Examples

Run this code
# NOT RUN {
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