scan_chrom | R Documentation |
Convenience function to call plot_spectrum with what = "click".
scan_chrom( chrom_list, lambda, chr, peak_table = NULL, scale_spectrum = FALSE, spectrum_labels = TRUE, export_spectrum = FALSE, ... )
chrom_list |
A list of chromatograms in matrix form (timepoints x wavelengths). |
lambda |
The wavelength to plot the trace at. |
chr |
Numerical index of chromatogram you wish to plot. |
peak_table |
The peak table (output from |
scale_spectrum |
Logical. If TRUE, scales spectrum to unit height. Defaults to FALSE. |
spectrum_labels |
Logical. If TRUE, plots labels on maxima in spectral plot. Defaults to TRUE. |
export_spectrum |
Logical. If TRUE, exports spectrum to console. Defaults to FALSE. |
... |
Additional arguments. |
If export_spectrum
is TRUE, returns the spectrum as a
data.frame
with wavelengths as rows and a single column encoding the
absorbance (or normalized absorbance, if scale_spectrum
is TRUE)
at each wavelength. Otherwise, there is no return value.
Plots a chromatographic trace from the specified chromatogram (chr
),
at the specified wavelength (lambda
) with a dotted red line to indicate
the user-selected retention time. The trace is a single column from the
chromatographic matrix.
If plot_spectrum
is TRUE, plots the spectrum for the specified
chromatogram at the user-specified retention time. The spectrum is a single
Ethan Bass
data(Sa_pr) scan_chrom(Sa_pr, lambda="210", chr=2, export_spectrum=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.