plot,PeakList,missing-method {tofsims} | R Documentation

## Method `plot()` for `MassSpectra`

### Description

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

### Usage

    ## 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

[Package tofsims version 1.16.0 Index]