plotSpectra: Plot Mass Spectra in a interactive way.

Description Usage Arguments

View source: R/spectraWidget.R

Description

Plot Mass Spectra in a interactive way.

Usage

1
2
3
4
5
6
7
8
plotSpectra(
  mass = NULL,
  intensity = NULL,
  peaks_mass = NULL,
  peaks_intensity = NULL,
  ref_mass = NULL,
  col = ""
)

Arguments

mass

the mass axis of spectrum

intensity

a intensity vector of spectrum

peaks_mass

a vector of peak masses to be labeled on spectrum

peaks_intensity

a vector of peak intensities to be labeled on spectrum

ref_mass

a vector of reference masses to be represented as vertical dashed lines

col

the color for the spectrum

Simply call this function each time you want to plot a mass spectrum and it will be overlayed with the current spectra. Peaks can be specified in the same call and it will be labeled over the spectrum.


prafols/rMSI documentation built on Dec. 12, 2021, 7:29 p.m.