Learn R Programming

tofsims (version 1.0.2)

plot,PeakList,missing-method: Method plot() for MassSpectra

Description

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

Usage

## S3 method for class '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

Value

  • plot spectra with peaks and peak widths

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).