scale_y_s.e.irrad_continuous | R Documentation |
Scale y continuous with defaults suitable for raw detector counts.
scale_y_s.e.irrad_continuous(
unit.exponent = 0,
name = s.e.irrad_label(unit.exponent = unit.exponent, format = format, label.text =
label.text, scaled = scaled, normalized = ifelse(is.numeric(normalized),
round(normalized, 1), unique(normalized)), axis.symbols = axis.symbols),
labels = SI_pl_format(exponent = unit.exponent),
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels()[["s.e.irrad"]],
scaled = FALSE,
normalized = FALSE,
axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE),
...
)
scale_y_s.q.irrad_continuous(
unit.exponent = ifelse(normalized, 0, -6),
name = s.q.irrad_label(unit.exponent = unit.exponent, format = format, label.text =
label.text, scaled = scaled, normalized = ifelse(is.numeric(normalized),
round(normalized, 1), unique(normalized)), axis.symbols = axis.symbols),
labels = SI_pl_format(exponent = unit.exponent),
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels()[["s.q.irrad"]],
scaled = FALSE,
normalized = FALSE,
axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE),
...
)
scale_y_s.e.irrad_log10(
unit.exponent = 0,
name = s.e.irrad_label(unit.exponent = unit.exponent, format = format, label.text =
label.text, scaled = scaled, normalized = ifelse(is.numeric(normalized),
round(normalized, 1), unique(normalized)), axis.symbols = axis.symbols),
labels = SI_pl_format(exponent = unit.exponent),
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels()[["s.e.irrad"]],
scaled = FALSE,
normalized = FALSE,
axis.symbols = getOption("ggspectra.axis.symbols", default = TRUE),
...
)
scale_y_s.q.irrad_log10(
unit.exponent = ifelse(normalized, 0, -6),
name = s.q.irrad_label(unit.exponent = unit.exponent, format = format, label.text =
label.text, scaled = scaled, normalized = ifelse(is.numeric(normalized),
round(normalized, 1), unique(normalized)), axis.symbols = axis.symbols),
labels = SI_pl_format(exponent = unit.exponent),
format = getOption("photobiology.math", default = "R.expression"),
label.text = axis_labels()[["s.q.irrad"]],
scaled = FALSE,
normalized = FALSE,
axis.symbols = getOption("ggspectra.axis.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 ( |
axis.symbols |
logical If |
... |
other named arguments passed to |
This function only alters two default arguments, please, see
documentation for scale_continuous
ggplot(sun.spct) +
geom_line() +
scale_y_s.e.irrad_continuous() +
scale_x_wl_continuous()
ggplot(sun.spct) +
geom_line() +
scale_y_s.e.irrad_continuous(label.text = "") +
scale_x_wl_continuous()
ggplot(sun.spct) +
geom_line() +
scale_y_s.e.irrad_continuous(label.text = "Irradiancia spectral,") +
scale_x_wl_continuous(label.text = "Longitud de onda,")
ggplot(sun.spct) +
geom_line() +
scale_y_s.e.irrad_continuous(unit.exponent = -1) +
scale_x_wl_continuous()
ggplot(sun.spct, unit.out = "photon") +
geom_line() +
scale_y_s.q.irrad_continuous() +
scale_x_wl_continuous()
ggplot(clip_wl(sun.spct, c(295, NA))) +
geom_line() +
scale_y_s.e.irrad_log10() +
scale_x_wl_continuous()
ggplot(clip_wl(sun.spct, c(295, NA)),
unit.out = "photon") +
geom_line(na.rm = TRUE) +
scale_y_s.q.irrad_log10() +
scale_x_wl_continuous()
if (packageVersion("photobiology") < "0.11.4") {
photon_as_default()
normalized_sun.spct <- normalize(e2q(sun.spct, action = "replace"))
ggplot(normalized_sun.spct) +
geom_line(na.rm = TRUE) +
scale_y_s.q.irrad_continuous(normalized =
normalization(normalized_sun.spct)$norm.wl) +
scale_x_wl_continuous()
ggplot(normalized_sun.spct) +
geom_line(na.rm = TRUE) +
scale_y_s.q.irrad_continuous(normalized =
normalization(normalized_sun.spct)$norm.type) +
scale_x_wl_continuous()
unset_radiation_unit_default()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.