Description Usage Arguments Value Examples
Makes an image
plot of the density estimate in the specified
M/Z and scan region.
1 | plotDensityRegion(cms, mzrange, scanrange)
|
cms |
An object of class |
mzrange |
A length-2 vector indicating the M/Z range to plot. |
scanrange |
A length-2 vector indicating the scan range to plot. |
This function is invoked for its side effect of plotting.
1 2 3 4 5 6 7 8 9 | ## For illustration purposes, we make a "dummy" object
## with a random matrix as the density estimate
densmat <- matrix(rnorm(600), nrow = 20, ncol = 30)
colnames(densmat) <- 1:ncol(densmat)
rownames(densmat) <- seq(350, by = 0.005, length.out = nrow(densmat))
densityQuantiles <- quantile(densmat, seq(from = 0, to = 1, by = 0.001))
cmsobj <- new("CMSproc", density = densmat, densityQuantiles = densityQuantiles)
plotDensityRegion(cmsobj, mzrange = c(350.01, 350.03), scanrange = c(10,20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.