Last data update: 2014.03.03

R: Plot the local maximum matrix
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

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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MassSpecWavelet)
Loading required package: waveslim

waveslim: Wavelet Method for 1/2/3D Signals (version = 1.7.5)

> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/MassSpecWavelet/plotLocalMax.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotLocalMax
> ### Title: Plot the local maximum matrix
> ### Aliases: plotLocalMax
> ### Keywords: hplot
> 
> ### ** Examples
> 
> 	data(exampleMS)
> 	scales <- seq(1, 64, 3)
> 	wCoefs <- cwt(exampleMS[5000:11000], scales=scales, wavelet='mexh')
> 	
> 	localMax <- getLocalMaximumCWT(wCoefs)
> 	plotLocalMax(localMax)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>