Last data update: 2014.03.03

R: Plot the ridge list
plotRidgeListR Documentation

Plot the ridge list

Description

Plot the ridge list returned by getRidge

Usage

plotRidgeList(ridgeList, wCoefs = NULL, range = NULL, colorMap = "RYB", main = NULL, pch = ".", cex = 3, ...)

Arguments

ridgeList

returned by getRidge

wCoefs

2-D CWT coefficients

range

plot range of m/z index

colorMap

colorMap to plot the points of local maximum

main

parameter of plot

pch

parameter of plot

cex

parameter of plot

...

other parameters of points

Author(s)

Pan Du

See Also

getRidge

Examples

	data(exampleMS)
	scales <- seq(1, 64, 3)
	wCoefs <- cwt(exampleMS[5000:11000], scales=scales, wavelet='mexh')
	
	localMax <- getLocalMaximumCWT(wCoefs)
	ridgeList <- getRidge(localMax)
	plotRidgeList(ridgeList)

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/plotRidgeList.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotRidgeList
> ### Title: Plot the ridge list
> ### Aliases: plotRidgeList
> ### Keywords: hplot
> 
> ### ** Examples
> 
> 	data(exampleMS)
> 	scales <- seq(1, 64, 3)
> 	wCoefs <- cwt(exampleMS[5000:11000], scales=scales, wavelet='mexh')
> 	
> 	localMax <- getLocalMaximumCWT(wCoefs)
> 	ridgeList <- getRidge(localMax)
> 	plotRidgeList(ridgeList)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>