Plots one or two mass spectra.
1 2 3 4 5 6 7 8 9 10 | ## S4 method for signature 'MassSpectrum,missing'
plot(x, xlab = expression(italic(m/z)),
ylab = expression(italic(Intensity)), type = if (isCentroided(x)) "h"
else "l", col = "darkcyan", peaklabels = 10, add = FALSE, ...)
## S4 method for signature 'MassSpectrum,MassSpectrum'
plot(x, y,
xlab = expression(italic(m/z)), ylab = expression(italic(Intensity)),
type = if (isCentroided(x)) "h" else "l", col = c("darkcyan",
"darkred"), peaklabels = 10, add = FALSE, ...)
|
x |
A mass spectrum to plot |
xlab |
x-axis label |
ylab |
y-axis label |
type |
The type of plot to draw |
col |
The plot color |
peaklabels |
Number of peaks to label |
add |
Add to an existing plot? |
... |
Arguments passed to plot function |
y |
A second mass spectrum to plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.