ggspectra (version 0.3.2)

scale_y_counts_continuous: Raw-counts y-scale

Description

Scale y continuous with defaults suitable for raw detector counts.

Usage

scale_y_counts_continuous(unit.exponent = 3,
  name = counts_label(unit.exponent = unit.exponent),
  labels = SI_pl_format(exponent = unit.exponent), ...)

scale_y_counts_tg_continuous(unit.exponent = 3, name = counts_label(unit.exponent = 0), labels = SI_tg_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(white_led.raw_spct) +
  geom_line() +
  scale_y_counts_continuous() +
  scale_x_wl_continuous()

ggplot(white_led.raw_spct) +
  geom_line() +
  scale_y_counts_continuous(0) +
  scale_x_wl_continuous()

ggplot(white_led.raw_spct) +
  geom_line() +
  scale_y_counts_tg_continuous() +
  scale_x_wl_continuous()

# }

Run the code above in your browser using DataCamp Workspace