recoupPlot | R Documentation |
This function takes as input argument an output object
from recoup
and plots the ggplot2
and ComplexHeatmap
objects stored there.
recoupPlot(recoupObj, what = c("profile", "heatmap",
"correlation"), device = c("x11", "png", "jpg", "tiff",
"bmp", "pdf", "ps"), outputDir = ".",
outputBase = paste(vapply(recoupObj,
function(x) return(x$data$id), character(1)),
sep = "_"), mainh = 1, ...)
recoupObj |
a list object created from
|
what |
one or more of |
device |
a valid R graphics device. See the
|
outputDir |
a valid directory when device is not
|
outputBase |
a valid file name to be used as
basis when device is not |
mainh |
the reference heatmap for ordering
operations. Normally, calculated in
|
... |
further parameters passed either to
|
This function does not returns anything, just plots the
recoup
plots.
Panagiotis Moulos
# Load some data
data("recoup_test_data",package="recoup")
# Calculate coverages
test.tss <- recoup(
test.input,
design=NULL,
region="tss",
type="chipseq",
genome=test.genome,
flank=c(2000,2000),
selector=NULL,
plotParams=list(plot=FALSE,profile=TRUE,
heatmap=TRUE,device="x11"),
rc=0.1
)
# Plot coverage profiles
recoupPlot(test.tss)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.