Prepare dendrogram by transforming dendrogram segments.
prepare_dendrogram(
dendro_in,
context = c("rows", "cols"),
dend_side,
dend_defaults,
dend_params,
full_plt,
layout,
x_long,
annot_df,
annot_side,
annot_pos,
annot_size
)
Data frame with dendrogram segment and node parameters.
Dendrogram object generated by
some_matrix |> dist() |> hclust() |> as.dendrogram() |> dendextend::as.ggdend()
.
Dimension the dendrogram will be plotted against (rows or columns).
String for dendrogram side.
List with dendrogram default parameters.
List with dendrogram parameters to overwrite defaults.
Logical indicating if the whole heatmap is plotted or not.
The heatmap layout (for reordering rows).
Data frame containing the values that will be plotted in the heatmap.
Data frame containing annotations.
Logical specifying which side the annotation will be drawn, analogous to 'dend_down' or 'dend_left' (use the one in the same dimension as the dendrogram).
Vector of the annotation positions along the opposite dimension.
Size of annotation cells, specified in heatmap cells (1 being the size of one cell).