RidgePlot {SigWinR}R Documentation

Plot ridges

Description

Plot a graph of a sequence with ridges calulated by Ridges

Usage

RidgePlot(ridges,x,y,ptitle="Ridges",labels=NULL,col=NULL)

Arguments

ridges a list of ridges produced by one or more cals to Ridges
x an optional vector with the same length as y of sample positions
y the sequence for which the ridges are calculated
ptitle The title of the graph
labels A vector of the labels for the elements in the ridge list
col The colors for rendering the elements of the ridge list

Details

An xy-plot will be drawn with the ridges shown as rectangles behind the graph.

Author(s)

w.c.deleeuw@uva.nl

References

SigWin-detector: a Grid-enabled workflow for discovering enriched windows of genomic features related to DNA sequences Márcia A Inda, Marinus F van Batenburg, Marco Roos, Adam SZ Belloum, Dmitry Vasunin, Adianto Wibisono, Antoine HC van Kampen, and Timo M Breit BMC Research Notes 2008; 1:63

See Also

Ridges,SigWin

Examples

x <- sort(unlist(sapply(1:10,function(i) { runif(round((rnorm(1,0,10))^2),i-1,i) })))
y <- sin(x*2)+rnorm(length(x))
RidgePlot(list(Ridges(y,1,x,pval=0.05),Ridges(y,1,x,pval=0.05,antiRidge=TRUE)),x,y,col=c("#CCFFCC","#FFCCCC"))
lines(seq(0.1,10,by=0.1),sin(2*seq(0.1,10,by=0.1)),col="blue",lw=2)

[Package SigWinR version 1.0 Index]