This function returns a ggplot object with an annotated plot of a
waveband
object.
# S3 method for waveband
autoplot(
object,
...,
w.length = NULL,
range = c(280, 800),
fill = 0,
span = NULL,
wls.target = "HM",
unit.in = getOption("photobiology.radiation.unit", default = "energy"),
annotations = NULL,
wb.trim = TRUE,
norm = NULL,
text.size = 2.5,
ylim = c(NA, NA),
object.label = deparse(substitute(object)),
na.rm = TRUE
)
a waveband object.
currently ignored.
numeric vector of wavelengths (nm)
an R object on which range() returns a vector of length 2, with min annd max wavelengths (nm).
value to use as response for wavelngths outside the waveband range.
a peak is defined as an element in a sequence which is greater than all other elements within a window of width span centered at that element.
numeric vector indicating the spectral quantity values for
which wavelengths are to be searched and interpolated if need. The
character
strings "half.maximum" and "half.range" are also accepted
as arguments. A list with numeric
and/or character
values is
also accepted.
the type of unit we assume as reference "energy" or "photon" based.
a character vector.
logical.
numeric normalization wavelength (nm) or character string "max" for normalization at the wavelength of highest peak.
numeric size of text in the plot decorations.
numeric y axis limits,
character The name of the object being plotted.
logical.
a ggplot
object.
Other autoplot methods:
autoplot.calibration_spct()
,
autoplot.cps_spct()
,
autoplot.filter_spct()
,
autoplot.object_spct()
,
autoplot.raw_spct()
,
autoplot.reflector_spct()
,
autoplot.response_spct()
,
autoplot.source_spct()
,
set_annotations_default()
# NOT RUN {
autoplot(waveband(c(400, 500)))
# }
Run the code above in your browser using DataLab