View source: R/spectraWidget.R
Plot Mass Spectra in a interactive way.
1 2 3 4 5 6 7 8 |
mass |
the mass axis of spectrum |
intensity |
a intensity vector of spectrum |
peaks_mass |
a vector of peak masses to be labeled on spectrum |
peaks_intensity |
a vector of peak intensities to be labeled on spectrum |
ref_mass |
a vector of reference masses to be represented as vertical dashed lines |
col |
the color for the spectrum Simply call this function each time you want to plot a mass spectrum and it will be overlayed with the current spectra. Peaks can be specified in the same call and it will be labeled over the spectrum. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.