scale_y_counts_continuous | R Documentation |
Scale y continuous with defaults suitable for raw detector counts.
scale_y_counts_continuous(
unit.exponent = ifelse(normalized, 0, 3),
name = counts_label(unit.exponent = unit.exponent, format = format, label.text =
label.text, scaled = scaled, normalized = round(normalized, 1), add.symbols =
add.symbols),
labels = SI_pl_format(exponent = unit.exponent),
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels()[["counts"]],
scaled = FALSE,
normalized = FALSE,
add.symbols = getOption("ggspectra.add.symbols", default = TRUE),
...
)
scale_y_counts_tg_continuous(
unit.exponent = ifelse(normalized, 0, 3),
name = counts_label(unit.exponent = 0, format = format, label.text = label.text, scaled
= scaled, normalized = round(normalized, 1), add.symbols = add.symbols),
labels = SI_tg_format(exponent = unit.exponent),
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels()[["counts"]],
scaled = FALSE,
normalized = FALSE,
add.symbols = getOption("ggspectra.add.symbols", default = TRUE),
...
)
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 ( |
add.symbols |
logical If |
... |
other named arguments passed to |
This function only alters default arguments values for name
and
labels
, please, see documentation for
scale_continuous
for other parameters.
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(unit.exponent = 0) +
scale_x_wl_continuous()
ggplot(white_led.raw_spct) +
geom_line() +
scale_y_counts_tg_continuous() +
scale_x_wl_continuous()
ggplot(white_led.raw_spct) +
geom_line() +
scale_y_counts_tg_continuous(unit.exponent = 0) +
scale_x_wl_continuous()
norm_led.raw_spct <- normalize(white_led.raw_spct[ , 1:2], norm = "max")
ggplot(norm_led.raw_spct) +
geom_line() +
scale_y_counts_continuous(normalized = getNormalized(norm_led.raw_spct)) +
scale_x_wl_continuous()
ggplot(norm_led.raw_spct) +
geom_line() +
scale_y_counts_tg_continuous(normalized = getNormalized(norm_led.raw_spct)) +
scale_x_wl_continuous()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.