slidPlot {CAFE} | R Documentation |
Plots chromosome plots with a moving average smoother
slidPlot(datalist,samples=c(1,2),chromNum=1,combine=FALSE,k=1,idiogram=FALSE,file="default")
datalist |
The CAFE datalist to be analyzed, i.e. the output of |
samples |
A vector of sample numbers to be plotted |
chromNum |
The chromosome to be analyzed |
combine |
If |
k |
The sliding window size. Must be a positive integer, smaller than the total number of probesets on the chromosome |
idiogram |
If |
file |
Specify a file name to store output png fileS |
Plot to file system;
Returns a ggplot2 graph if chromNum!="ALL"
. When chromNum=="ALL"
,
returns a list of ggplot2 graphs.
Makes heavy use of the ggplot2 package.
Sander Bollen
H. Wickham. ggplot2: elegant graphics for data analysis. Springer New York, 2009.
data("CAFE_data") slidPlot(CAFE_data,samples=9,chromNum=17,k=50,combine=TRUE)