heatDiagram(results, coef, primary=1, names=NULL, treatments=colnames(coef), limit=NULL,
orientation="landscape", low="green", high="red", cex=1, mar=NULL,
ncolors=123, ...)
heatdiagram(stat, coef, primary=1, names=NULL, treatments=colnames(stat),
critical.primary=4, critical.other=3, limit=NULL, orientation="landscape",
low="green", high="red", cex=1, mar=NULL, ncolors=123, ...)
TestResults
matrix, containing elements -1, 0 or 1, from decideTests
stat
. Holds the coefficients to be displayed in the plot.stat
and are sorted according to this column of coef
. If primary
is a name, then stat
and coef
must have the same column names.critical.primary
although larger values are permitted.coef
above which values will be plotted in extreme color. Defaults to max(abs(coef))
."portrait"
for upright plot or "landscape"
for plot orientated to be wider than high. "portrait"
is likely to be appropriate for inclusion in printed document while "landscape"
may be appropriate for a presentation on a computer screen.cex*c(5,6,1,1)
for landscape and cex*c(1,1,4,3)
for portrait.image
functionheatDiagram
rather than heatdiagram
as the later function may be removed in future versions of limma.
This function plots an image of gene expression profiles in which rows (or columns for portrait orientation) correspond to treatment conditions and columns (or rows) correspond to genes.
Only genes which are significantly differentially expressed in the primary condition are included.
Genes are sorted by differential expression under the primary condition.
Note: the plot produced by this function is unique to the limma package.
It should not be confused with "heatmaps" often used to display results from cluster analyses.image
.MA <- normalizeWithinArrays(RG)
design <- cbind(c(1,1,1,0,0,0),c(0,0,0,1,1,1))
fit <- lmFit(MA,design=design)
contrasts.mouse <- cbind(Control=c(1,0),Mutant=c(0,1),Difference=c(-1,1))
fit <- eBayes(contrasts.fit(fit,contrasts=contrasts.mouse))
results <- decideTests(fit,method="global",p=0.1)
heatDiagram(results,fit$coef,primary="Difference")
Run the code above in your browser using DataLab