plotRIdev | R Documentation |
plotRIdev
plots the Retention Time Index Deviation of a given set of metabolites.
plotAllRIdev
saves the plots of the RI deviations of all the metabolites in the library object
into a PDF file.
plotRIdev(Lib, peaks, libID = 1, ...)
plotAllRIdev(Lib, peaks, pdfFile, width = 8, height = 8, ...)
Lib |
A |
peaks |
A |
libID |
A numeric vector providing the indices of the metabolites to plot. |
pdfFile |
A file name where the plot will be saved. Only |
width , height |
The width and height of the plots in inches. Only |
... |
Further options passed to |
Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig
ImportLibrary
, tsLib
,
tsMSdata
, pdf
require(TargetSearchData)
data(TSExample)
# get RI file path
RI.path <- tsd_data_path()
# update RI file path
RIpath(sampleDescription) <- RI.path
peakData <- peakFind(sampleDescription, refLibrary, corRI)
# Plot RI deviation of metabolite "Valine"
grep("Valine", libName(refLibrary)) # answer: 3
plotRIdev(refLibrary, peakData, libID = 3)
# Plot an RI deviation overview of the first nine metabolites
plotRIdev(refLibrary, peakData, libID = 1:9)
# Save all RI deviation into a pdf file
plotAllRIdev(refLibrary, peakData, pdfFile = "RIdeviations.pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.