tofsims (version 1.0.2)

points: generic method points generic method points

Description

generic method points generic method points

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

Usage

points(x, ...)

## S3 method for class 'MassSpectra': points(x, y, ..., mzRange = c(0, 200), normalize = FALSE)

Arguments

x
vector with mz for mass spectra plot
...
additional args
y
vector with ion counts for mass spectra plot
mzRange
vector of length 2, indicating the mz range to be plotted
normalize
boolean should the mass spectra be normalized

Value

  • graphical output

    graphic output

Details

This function can be used to visualize several spectra in the same plot.

Examples

Run this code
library(tofsimsData) 
data("tofsimsData")
plot(testImage, type='l', normalize = TRUE, col = 'blue')
points(testSpectra, type = 'l', normalize = TRUE, col = 'red')

Run the code above in your browser using DataLab