plot-MassSpectrum: Plot a mass spectrum

Description Usage Arguments

Description

Plots one or two mass spectra.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S4 method for signature 'MassSpectrum,missing'
plot(x, xlab = expression(italic(m/z)),
  ylab = expression(italic(Intensity)), type = if (isCentroided(x)) "h"
  else "l", col = "darkcyan", peaklabels = 10, add = FALSE, ...)

## S4 method for signature 'MassSpectrum,MassSpectrum'
plot(x, y,
  xlab = expression(italic(m/z)), ylab = expression(italic(Intensity)),
  type = if (isCentroided(x)) "h" else "l", col = c("darkcyan",
  "darkred"), peaklabels = 10, add = FALSE, ...)

Arguments

x

A mass spectrum to plot

xlab

x-axis label

ylab

y-axis label

type

The type of plot to draw

col

The plot color

peaklabels

Number of peaks to label

add

Add to an existing plot?

...

Arguments passed to plot function

y

A second mass spectrum to plot


kuwisdelu/MSExample documentation built on May 13, 2020, 10:25 p.m.