The heatmap.2 function provides an enhanced version of
the standard R heatmap function with numerous additional
features and customization options. This vignette demonstrates the key
capabilities and usage patterns of heatmap.2. It is based
on the manual for ?heatmap.2, written by Andy Liaw,
original; R. Gentleman, M. Maechler, W. Huber, G. Warnes, revisions.
Rowv, Colv)Rowv or
Colv are already
dendrograms, they are honored and
their ordering is preserved (not reordered).NULL, no
reordering will be done for the corresponding side.scale)scale="row" (or
scale="col"), the rows (columns) are
scaled to have mean zero and standard deviation
one.RowSideColor or
ColSideColor are provided, an
additional row or column is inserted in the appropriate
location.lmat, lwid,
and lhei:
lmat controls the relative
position of each element.lwid controls the column
width.lhei controls the row
height.layout for
details on how to use these arguments.Rowv and
Colv (if present).heatmap.2() uses
layout to arrange the plot elements.
Consequentially, it cannot be used in a
multi-column/row layout using layout(...),
par(mfrow=...) or
(mfcol=...).