plotDensityRegion {yamss}R Documentation

Image plot of region of density estimate.

Description

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

Usage

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

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

[Package yamss version 1.8.1 Index]