Description Usage Arguments Author(s) Examples
View source: R/functions-utils.R
UPDATE: please use plot(x, type = "XIC")
from the MSnbase
package
instead. See examples below.
The plotMsData
creates a plot that combines an (base peak )
extracted ion chromatogram on top (rt against intensity) and a plot of
rt against m/z values at the bottom.
1 2 3 4 5 6 7 8 | plotMsData(
x,
main = "",
cex = 1,
mfrow = c(2, 1),
grid.color = "lightgrey",
colramp = colorRampPalette(rev(brewer.pal(9, "YlGnBu")))
)
|
x |
|
main |
|
cex |
|
mfrow |
|
grid.color |
a color definition for the grid line (or |
colramp |
a color ramp palette to be used to color the data points
based on their intensity. See argument |
Johannes Rainer
1 2 3 4 5 6 7 8 9 10 11 12 | ## Read two files from the faahKO package
library(faahKO)
library(magrittr)
cdfs <- dir(system.file("cdf", package = "faahKO"), full.names = TRUE,
recursive = TRUE)[1:2]
raw_data <- readMSData(cdfs, mode = "onDisk")
## Subset the object to a rt and mz range and plot the data.
raw_data %>%
filterRt(rt = c(2700, 2900)) %>%
filterMz(mz = c(334.9, 335.1)) %>%
plot(type = "XIC")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.