If export_spectrum is TRUE, returns the spectra as a
data.frame with wavelengths as rows and one column for each sample in the
chrom_list encoding the absorbance (or normalized absorbance, if
scale_spectrum is TRUE) at each wavelength. Otherwise, there is no
return value.
Arguments
peak
The name of a peak to plot (in character
format)
peak_table
The peak table (output from get_peaktable
function)
chrom_list
A list of profile matrices, each of the same dimensions
(timepoints x components).
chrs
Vector of chromatograms to plot.
plot_spectrum
Logical. If TRUE, plots the spectrum of the chosen
peak.
export_spectrum
Logical. If TRUE, exports spectrum to console.
Defaults to FALSE.
scale_spectrum
Logical. If TRUE, scales spectrum to unit height.
overlapping
Logical. If TRUE, plot spectra in single plot.
verbose
Logical. If TRUE, prints verbose output to console.
...
Additional arguments to plot_spectrum.
Side effects
If plot_spectrum is TRUE, plots the spectra for the specified chromatogram
(chr) of the given peak. The spectrum is a single row
from the chromatographic matrix.