View source: R/XcmsExperiment-plotting.R
plotPrecursorIons | R Documentation |
Simple visualization of the position of fragment spectra's precursor ion in the MS1 retention time by m/z area.
plotPrecursorIons(
x,
pch = 21,
col = "#00000080",
bg = "#00000020",
xlab = "retention time",
ylab = "m/z",
main = character(),
...
)
x |
|
pch |
|
col |
the color to be used for all data points. Defines the border
color if |
bg |
the background color (if |
xlab |
|
ylab |
|
main |
Optional |
... |
additional parameters to be passed to the |
Johannes Rainer
## Load a test data file with DDA LC-MS/MS data
library(MsExperiment)
fl <- system.file("TripleTOF-SWATH", "PestMix1_DDA.mzML", package = "msdata")
pest_dda <- readMsExperiment(fl)
plotPrecursorIons(pest_dda)
grid()
## Subset the data object to plot the data specifically for one or
## selected file/sample:
plotPrecursorIons(pest_dda[1L])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.