heatmap.plus(x, Rowv = NULL, Colv = if (symm) "Rowv" else NULL, distfun = dist, hclustfun = hclust, reorderfun = function(d, w) reorder(d, w), add.expr, symm = FALSE, revC = identical(Colv, "Rowv"), scale = c("row", "column", "none"), na.rm = TRUE, margins = c(5, 5), ColSideColors, RowSideColors, cexRow = 0.2 + 1/log10(nr), cexCol = 0.2 + 1/log10(nc), labRow = NULL, labCol = NULL, main = NULL, xlab = NULL, ylab = NULL, keep.dendro = FALSE, verbose = getOption("verbose"), ...)
dendrogram
or a
vector of values used to reorder the row dendrogram or
NA
to suppress any row dendrogram (and reordering) or
by default, NULL
, see Details below.Rowv
argument above and
additionally when x
is a square matrix, Colv =
"Rowv"
means that columns should be treated identically to the rows.dist
.Rowv
or Colv
are not dendrograms. Defaults to
hclust
.reorder.dendrogram
.image
. Can be used to add components to the plot.x
should be treated
symmetrically; can only be true when x
is a square matrix.rev
ersed for plotting, such that e.g., for the
symmetric case, the symmetry axis is as usual."row"
if symm
false, and
"none"
otherwise.NA
's should be removed.par(mar= *)
) for column and row names, respectively.cex.axis
in
for the row or column axis labeling. The defaults currently only
use number of rows or columns, respectively.rownames(x)
or colnames(x)
,
respectively.Rowv
and/or Colv
are
not NA).image
,
e.g., col
specifying the colors.heatmap
z = matrix(rnorm(30),nrow=5,ncol=6);
rlab = matrix(as.character(c(1:5,2:6,3:7,4:8)),nrow=5,ncol=4);
clab = matrix(as.character(c(1:6,6:1)),nrow=6,ncol=2);
colnames(rlab) = LETTERS[1:dim(rlab)[2]];
colnames(clab) = 1:dim(clab)[2];
heatmap.plus(z,ColSideColors=clab,RowSideColors=rlab);
Run the code above in your browser using DataLab