heatmapLayout {Heatplus} | R Documentation |
Generate a layout for an (annotated) heatmap. This function will generally not be called directly, but only via annHeatmap2
.
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
## 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