Description Usage Arguments Details Value See Also Examples
Generate a layout for an (annotated) heatmap. This function will generally
not be called directly, but only via annHeatmap2
.
1 | heatmapLayout(dendrogram, annotation, leg.side = NULL, show = FALSE)
|
dendrogram |
A list with named entries |
annotation |
A list with named entries |
leg.side |
An integer indicating on where to reserve space for the
legend: values 1-4 correspond to below, to the left, above and to the right,
as in e.g. |
show |
A logical value; if |
Space for plots is reserved via the layout
mechanism. The function
starts with an empty maximum layout, fills in the plot, dendrograms,
annotation plots and legend as required, and compresses the resulting layout
by removing empty slots.
A list with the following entries:
plot |
A matrix describing
the plot layout; see |
width |
relative widths of plots (i.e. columns) |
height |
relative heights of plots (i.e. rows) |
legend.side |
side where to draw the legend |
annHeatmap2
, picketPlot
,
layout
1 2 3 4 5 6 7 8 9 10 | def.par = par(no.readonly = TRUE) # save default, for resetting
## Heatmap with column dendrogram, column annotation, default legend
dnd = list(Row=list(status="no"), Col=list(status="yes"))
ann = list(Row=list(data=NULL), Col=list(data=1))
## 1 = heatmap, 2=dendrogram, 3=annotation, 4=legend
ll = heatmapLayout(dendrogram=dnd, annotation=ann, leg.side=NULL, show=TRUE)
ll
par(def.par) #- reset to default
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.