Plots reflectance spectra in different arrangements.
(required) a data frame, possibly an object of class rspec
, with a
column with wavelength data, named 'wl', and the remaining column
containing spectra to plot.
specification of which spectra to plot. Can be a numeric vector
or factor (e.g., sex == "male"
)
what type of plot should be drawn. Possibilities are:
overlay
(default) for plotting multiple spectra in a single panel with
a common y-axis.
stack
for plotting multiple spectra in a vertical arrangement.
heatmap
for plotting reflectance values by wavelength and a third
variable (varying
).
a numeric vector giving values for y-axis in
type = "heatmap"
.
number of bins with which to interpolate colors and varying
for
the heatplot.
logical. Add labels identifying each spectrum to the outer plot
margin? Defaults to FALSE
. Ignored when type = 'heatmap'
.
a vector of labels for spectra when labels = TRUE
.
Defaults to the column names from spectral data. Note you will likely want
to adjust the plot margins to accommodate the text labels. See ?par()
for
guidance on setting margins.
size of the text labels when labels = TRUE
.
logical determining whether visible light spectrum should be added to the x-axis.
additional arguments passed to plot()
(or image()
for
"heatmap"
).