\HeaderA{plotLocalMax}{Plot the local maximum matrix}{plotLocalMax}
\keyword{hplot}{plotLocalMax}
\begin{Description}\relax
Plot the local maximum matrix of 2-D CWT coefficients returned by \code{\LinkA{getLocalMaximumCWT}{getLocalMaximumCWT}}
\end{Description}
\begin{Usage}
\begin{verbatim}
plotLocalMax(localMax, wCoefs = NULL, range = c(1, nrow(localMax)), colorMap = "RYB", main = NULL, cex = 3, pch = ".", ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{localMax}] local maximum matrix of 2-D CWT coefficients returned by \code{\LinkA{getLocalMaximumCWT}{getLocalMaximumCWT}}
\item[\code{wCoefs}] 2-D CWT coefficients 
\item[\code{range}] plot range of m/z index 
\item[\code{colorMap}] the colormap used in plotting the points 
\item[\code{main}] parameter of \code{\LinkA{plot}{plot}} 
\item[\code{cex}] parameter of \code{\LinkA{plot}{plot}} 
\item[\code{pch}] parameter of \code{\LinkA{plot}{plot}} 
\item[\code{...}] other parameters of \code{\LinkA{points}{points}} 
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Pan Du
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getLocalMaximumCWT}{getLocalMaximumCWT}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
        data(exampleMS)
        scales <- seq(1, 64, 3)
        wCoefs <- cwt(exampleMS[5000:11000], scales=scales, wavelet='mexh')
        
        localMax <- getLocalMaximumCWT(wCoefs)
        plotLocalMax(localMax)
\end{ExampleCode}
\end{Examples}

