Learn R Programming

MassSpecWavelet (version 1.38.0)

plotLocalMax: Plot the local maximum matrix

Description

Plot the local maximum matrix of 2-D CWT coefficients returned by getLocalMaximumCWT

Usage

plotLocalMax(localMax, wCoefs = NULL, range = c(1, nrow(localMax)), colorMap = "RYB", main = NULL, cex = 3, pch = ".", ...)

Arguments

localMax
local maximum matrix of 2-D CWT coefficients returned by getLocalMaximumCWT
wCoefs
2-D CWT coefficients
range
plot range of m/z index
colorMap
the colormap used in plotting the points
main
parameter of plot
cex
parameter of plot
pch
parameter of plot
...
other parameters of points

See Also

getLocalMaximumCWT

Examples

Run this code
	data(exampleMS)
	scales <- seq(1, 64, 3)
	wCoefs <- cwt(exampleMS[5000:11000], scales=scales, wavelet='mexh')
	
	localMax <- getLocalMaximumCWT(wCoefs)
	plotLocalMax(localMax)

Run the code above in your browser using DataLab