pointsAdducts: Overlay adduct parental and adduct masses on plot of msimat...

Description Usage Arguments See Also

View source: R/pointsAdducts.R

Description

On a mass spectrum plot (from an msimat object), plot points representing either parental or adduct masses as an overlay. By default only those flagged as having statistically significant spatial correlation will be plotted. The massdiff object should have been processed with adductMatch and corrPairsMSI to annotate with adduct matches and correlation test results.

Usage

1
2
pointsAdducts(d, diff, which = c("adduct", "parent"), invert = FALSE,
  signif = TRUE, pch = 20, cex = 0.5, col = "red", ...)

Arguments

d

msimat; Object of class msimat created by function msimat

diff

data.frame; Mass difference correlation table produced by function corrPairsMSI

which

string; Either plot "parent" or "adduct" peaks as overlay

invert

logical; Overlay the points which are NOT adducts

signif

logical; Only plot points which have statistically significant correlation

pch

Plot character to use, passed to points

cex

Character expansion parameter, passed to points

col

Color for overlay points, passed to points

...

Other parameters to pass to points

See Also

corrPairsMSI calculate correlations for mass pairs

massdiff tabulate all possible mass pairs


kbseah/mass2adduct documentation built on June 9, 2021, 9:20 p.m.