Method plot() for MassSpectra

Share:

Description

Method defining plot() for the MassSpectra class plot has no generic by default

Usage

1
2
3
## S4 method for signature 'PeakList,missing'
plot(x, y, ..., mzRange = c(0, 200),
  plotDeriv = FALSE, plotPeaks = TRUE, plotWidths = TRUE)

Arguments

x

object of type PeakList

y

missing

...

further args

mzRange

vector or length two, indicating the mz range to be plotted

plotDeriv

boolean plot derivate if available

plotPeaks

boolean plot peaks if available

plotWidths

boolean plot peak widths if available

Details

The output of this method is adapted for plotting mass spectra. Uncalibrated data is plotted as xy plot while uncalibrated data is plotted as barplot. The parameter mzRange allows choosing the plot range directly according to the mz number (when calibrated).

Value

plot spectra with peaks and peak widths

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.