isoLabel: Label a prettyPlot with isotope patterns

View source: R/rapt_vis.R

isoLabelR Documentation

Label a prettyPlot with isotope patterns

Description

isoLabel adds a set of lines and labels of isotopes generated by isopattern to a prettyPlot. It currently assumes (like prettyPlot) that the spectrum is log10 transformed. This will be extended to arbitrary spectra in the future.

Usage

isoLabel(ms, pat, rng = NULL, col = NULL, halfWindowSize = 0.5)

Arguments

ms

A MassSpectrum. The (log transformed) mass spectrum to be marked.

pat

A list of isotopic patterns as generated by isopattern

rng

Currently unused.

col

A vector of colors for the isotopes. If NULL, the standard R sequence of colors will be used.

halfWindowSize

A numeric. The half-width of the window for determining the height of the main isotope peak.

Value

NULL

See Also

isopattern


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.