plotDensityRegion: Image plot of region of density estimate.

Description Usage Arguments Value Examples

Description

Makes an image plot of the density estimate in the specified M/Z and scan region.

Usage

1
plotDensityRegion(cms, mzrange, scanrange)

Arguments

cms

An object of class CMSproc.

mzrange

A length-2 vector indicating the M/Z range to plot.

scanrange

A length-2 vector indicating the scan range to plot.

Value

This function is invoked for its side effect of plotting.

Examples

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))

hansenlab/yamss documentation built on Feb. 8, 2022, 4:28 p.m.