hist.massdiff: Histogram method for massdiff object

Description Usage Arguments Value See Also

View source: R/hist.massdiff.R

Description

Bin mass differences from a massdiff object produced by massdiff into a histogram, and plot if requested.

Usage

1
2
## S3 method for class 'massdiff'
hist(diff, widthFunc = "equal", width = 0.01, ...)

Arguments

diff

massdiff; Output from function massdiff, containing three numeric vectors (A, B, diff) representing mass peaks and their differences

widthFunc

character; function to use to bin mass differences into histogram. (default "equal", other options to be added)

width

numeric; bin width in m/z units (default 0.01)

...

Other options to be passed to hist()

Value

Object of classes hist and massdiffhist

See Also

massdiff to generate the mass difference list

plot.massdiffhist for plotting and annotating the resulting object


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