scale_y_cps_continuous {ggspectra} | R Documentation |
Counts-per-second y-scale
Description
Scale y continuous with defaults suitable for raw detector counts.
Usage
scale_y_cps_continuous(
unit.exponent = 0,
name = cps_label(unit.exponent = unit.exponent, format = format, label.text =
label.text, scaled = scaled, normalized = round(normalized, 1)),
labels = SI_pl_format(exponent = unit.exponent),
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels()[["cps"]],
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 |
normalized |
logical ( |
... |
other named arguments passed to |
Note
This function only alters two default arguments, please, see
documentation for scale_continuous
Examples
ggplot(white_led.cps_spct) +
geom_line() +
scale_y_cps_continuous() +
scale_x_wl_continuous()
ggplot(white_led.cps_spct) +
geom_line() +
scale_y_cps_continuous(3) +
scale_x_wl_continuous()
ggplot(white_led.cps_spct * 1e-4) +
geom_line() +
scale_y_cps_continuous(scaled = TRUE) +
scale_x_wl_continuous()
norm_led.cps_spct <- normalize(white_led.cps_spct, norm = "max")
ggplot(norm_led.cps_spct) +
geom_line() +
scale_y_cps_continuous(normalized = getNormalized(norm_led.cps_spct)) +
scale_x_wl_continuous()
[Package ggspectra version 0.3.12 Index]