Learn R Programming

LipidMS (version 2.1.2)

plotLipids: Plot informative peaks for lipids annotation

Description

Plot informative peaks for each lipid annotated using idPOS and idNEG (or similar functions).

Usage

plotLipids(msobject, spar = 0.4)

Arguments

msobject

annotated msobject.

spar

smoothing parameter. Numeric value between 0 and 1.

Value

msobject with a plots element which contains a list of plots. Plots on the left side represent raw values while plots on the left side are smoothed or clean scans (MS2 in DDA).

Details

Peak intensities are relative to the maximum intensity of each peak to ease visualization.

Examples

Run this code
# NOT RUN {
devtools::install_github("maialba3/LipidMSdata2")

library(LipidMS)
msobject <- idPOS(LipidMSdata2::msobjectDIApos)
msobject <- plotLipids(msobject)

# display the first plot
msobject$plots[[1]]
msobject$plots[["peakID"]]

# save all plot to a pdf file
pdf("plotresults.pdf")
msobject$plots
dev.off()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab