Description Usage Arguments Details Value Examples
Generic method peakWidths
peakWidths
1 2 3 4 | peakWidths(object, plot = FALSE)
## S4 method for signature 'PeakList'
peakWidths(object, plot = FALSE)
|
object |
PeakList object |
plot |
boolean should there be graphical output |
This method will calculate peak widths (m/z) based on lower and upper widths.
Method to return the peakWidth values of all peaks. On plot=TRUE the width values are ploted against the M/z of the corresponding peak.
vector of peak widths
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(tofsimsData)
data(tofsimsData)
testPeakList<-PeakList(analysisName = analysisName(testSpectra),
instrument = instrument(testSpectra),
nz = nz(testSpectra),
calibration = calibration(testSpectra),
calibPoints = calibPoints(testSpectra),
mz = mz(testSpectra),
peakIDs = NULL,
peakMzs = NULL)
testPeakList<-addPeaks(testPeakList, mzs=26:31, width=0.4)
testPeakList<-findPeakWidth(testPeakList, p = 3, n = 199,
span = 100, widthExtLower = 2, widthExtUpper = 2)
testPeakList<-peakWidths(testPeakList, plot = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.