points: generic method points generic method points

Description Usage Arguments Details Value Examples

Description

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

Usage

1
2
3
4
points(x, ...)

## S4 method for signature '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

Details

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

Value

graphical output

graphic output

Examples

1
2
3
4
library(tofsimsData) 
data("tofsimsData")
plot(testImage, type='l', normalize = TRUE, col = 'blue')
points(testSpectra, type = 'l', normalize = TRUE, col = 'red')

Example output

Loading required package: ProtGenerics

Attaching package:ProtGenericsThe following object is masked frompackage:stats:

    smooth

tofsims documentation built on Nov. 8, 2020, 5:10 p.m.