plotCalib: Plot the calibration peaks after calibration

plotCalibR Documentation

Plot the calibration peaks after calibration

Description

Plot the calibration peaks after calibration

Usage

plotCalib(object, ppm = 2000, ...)

## S4 method for signature 'ptrRaw'
plotCalib(object, ppm = 2000, ...)

## S4 method for signature 'ptrSet'
plotCalib(object, ppm = 2000, pdfFile = NULL, fileNames = NULL, ...)

Arguments

object

a ptrSet or ptrRaw object

ppm

the width of plot windows

...

not used

pdfFile

is different of NULL, the file path to save the plots in pdf

fileNames

the name of the files in the ptrSet object to plot. If NULL, all files will be plotted

Value

plot

Examples

## ptrSet
dirRaw <- system.file("extdata/exhaledAir", package = "ptairData")
exhaledPtrset <- createPtrSet(dir=dirRaw, setName="exhaledPtrset", 
mzCalibRef = c(21.022, 60.0525), fracMaxTIC = 0.7, saveDir = NULL )
plotCalib(exhaledPtrset ,fileNames=getFileNames(exhaledPtrset )[1])

## ptrRaw 
filePath<-system.file('extdata/exhaledAir/ind1/ind1-1.h5', 
package = 'ptairData')
raw <- readRaw(filePath,mzCalibRef=c(21.022,59.049))
plotCalib(raw)

camilleroquencourt/ptairMS documentation built on June 9, 2024, 10:35 a.m.