PlotSetArray
,
PlotSetList
, PlotSetPair
classes or properly
formatted list
(see details) in active graphics window.
Axes and titles, keys and other plot elements are controlled by function
parameters.plotHeatmap(plotset, main = "", labels = NA, legend = TRUE,
keepratio = FALSE, plotScale = "no", sortrows = FALSE, clusters = 5L,
clstmethod = "kmeans", include = NULL, ssomt1 = 2L, ssomt2 = 2L,
cex.main = 16, cex.lab = 12, cex.axis = 12, cex.legend = 12,
xlab = "", ylab = "", autoscale = TRUE, zmin = 0, zmax = 10,
xlim = NULL, ln.v = TRUE, s = 0.01, indi = TRUE, o_min = NA,
o_max = NA, colvec = NULL, clspace = NULL, pointsize = 12,
embed = FALSE, ggplot = FALSE, raster = FALSE, ...)## S3 method for class 'list':
plotHeatmap(plotset, main = "", labels = NA,
legend = TRUE, keepratio = FALSE, plotScale = "no", sortrows = FALSE,
clusters = 5L, clstmethod = "kmeans", include = NULL, ssomt1 = 2L,
ssomt2 = 2L, cex.main = 16, cex.lab = 12, cex.axis = 12,
cex.legend = 12, xlab = "", ylab = "", autoscale = TRUE, zmin = 0,
zmax = 10, xlim = NULL, ln.v = TRUE, s = 0.01, indi = TRUE,
o_min = NA, o_max = NA, colvec = NULL, clspace = NULL,
pointsize = 12, embed = FALSE, ggplot = FALSE, raster = FALSE, ...)
## S3 method for class 'PlotSetPair':
plotHeatmap(plotset, main = "", labels = NA,
legend = TRUE, keepratio = FALSE, plotScale = "no", sortrows = FALSE,
clusters = 5L, clstmethod = "kmeans", include = NULL, ssomt1 = 2L,
ssomt2 = 2L, cex.main = 16, cex.lab = 12, cex.axis = 12,
cex.legend = 12, xlab = "", ylab = "", autoscale = TRUE, zmin = 0,
zmax = 10, xlim = NULL, ln.v = TRUE, s = 0.01, indi = TRUE,
o_min = NA, o_max = NA, colvec = NULL, clspace = NULL,
pointsize = 12, embed = FALSE, ggplot = FALSE, raster = FALSE, ...)
## S3 method for class 'PlotSetList':
plotHeatmap(plotset, main = "", labels = NA,
legend = TRUE, keepratio = FALSE, plotScale = "no", sortrows = FALSE,
clusters = 5L, clstmethod = "kmeans", include = NULL, ssomt1 = 2L,
ssomt2 = 2L, cex.main = 16, cex.lab = 12, cex.axis = 12,
cex.legend = 12, xlab = "", ylab = "", autoscale = TRUE, zmin = 0,
zmax = 10, xlim = NULL, ln.v = TRUE, s = 0.01, indi = TRUE,
o_min = NA, o_max = NA, colvec = NULL, clspace = NULL,
pointsize = 12, embed = FALSE, ggplot = FALSE, raster = FALSE, ...)
## S3 method for class 'PlotSetArray':
plotHeatmap(plotset, main = "", labels = NA,
legend = TRUE, keepratio = FALSE, plotScale = "no", sortrows = FALSE,
clusters = 5L, clstmethod = "kmeans", include = NULL, ssomt1 = 2L,
ssomt2 = 2L, cex.main = 16, cex.lab = 12, cex.axis = 12,
cex.legend = 12, xlab = "", ylab = "", autoscale = TRUE, zmin = 0,
zmax = 10, xlim = NULL, ln.v = TRUE, s = 0.01, indi = TRUE,
o_min = NA, o_max = NA, colvec = NULL, clspace = NULL,
pointsize = 12, embed = FALSE, ggplot = FALSE, raster = FALSE, ...)
PlotSetArray
,
PlotSetList
, PlotSetPair
or properly formatted
list
"increasing"
or "decreasing"
the rows of
heatmap will be sorted by mean value across all heatmaps,
defaults to FALSE
- not sorted. For backwards compatibility TRUE
is synonymous to "increasing".rep(TRUE, length(plotset))
autoscale
is TRUEautoscale
is TRUEplotset
will be plotted.indi
is FALSEindi
is FALSEcol2rgb
.grDevices
image
function and
geom_raster
function for details, defaults to FALSEdata.frame
, giving cluster assignments and
sorting order for each feature. It contains following columns: list
: Method for signaturelist
with
following format:list[[FEATURE]][[TRACK/MOTIF]][[KEY_VALUE]]
PlotSetPair
: Method for signaturePlotSetPair
PlotSetList
: Method for signaturePlotSetList
PlotSetArray
: Method for signaturePlotSetArray
getPlotSetArray
,
plotAverage
, plot
# Get the paths of example files
bed1 <- system.file("extdata",
"Transcripts_ce10_chrI_100Kb.bed", package="seqplots")
bed2 <- system.file("extdata",
"GSM1208361_chrI_100Kb_PeakCalls.bed", package="seqplots")
bw1 <- system.file("extdata",
"GSM1208360_chrI_100Kb_q5_sample.bw", package="seqplots")
#If required install C. elegans genomic package from Bioconductor
if(!"BSgenome.Celegans.UCSC.ce10" %in% BSgenome::installed.genomes()) {
if(.Platform$OS.type != "windows" || .Machine$sizeof.pointer != 4) {
source("http://bioconductor.org/biocLite.R")
biocLite("BSgenome.Celegans.UCSC.ce10")
}
}
#Get getPlotSetArray for track and feature files
if(.Platform$OS.type != "windows" || .Machine$sizeof.pointer != 4) {
plotset1 <- getPlotSetArray(bw1, c(bed1, bed2), 'ce10')
} else {
load(system.file("extdata", "precalc_plotset.Rdata", package="seqplots"))
}
# equivalent to plot(plotset1, what='h') or plotset1$plot(what='h')
plotHeatmap(plotset1[1])
Run the code above in your browser using DataLab