plotLocalMax: Plot the local maximum matrix

View source: R/plotLocalMax.R

plotLocalMaxR Documentation

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

Value

No value is returned; this function is called for its side effects (plot).

Author(s)

Pan Du

See Also

getLocalMaximumCWT()

Examples


data(exampleMS)
scales <- seq(1, 64, 3)
wCoefs <- cwt(exampleMS[5000:11000], scales = scales, wavelet = "mexh")

localMax <- getLocalMaximumCWT(wCoefs)
plotLocalMax(localMax)


zeehio/MassSpecWavelet documentation built on May 6, 2023, 1:32 a.m.