Plot heatmap with cluster results and dendrogram
cluster_heatmaps(
scaled_selected_data,
clusters,
k,
cluster_colors,
scaled_unselected_data = NULL,
annotation = NULL
)
scaled matrix or data frame with variables used for clustering
hierarchical cluster results produced by fastcluster::hclust()
targeted number of clusters
list of cluster colors to match with boxplots
(optional) scaled matrix or data frame with variables not used for clustering
(optional) ComplexHeatmap::columnAnnotation object
dmat <- compute_dmat(iris, "euclidean", TRUE, c("Petal.Length", "Sepal.Length"))
clusters <- compute_clusters(dmat, "complete")
species_annotation <- create_annotations(iris, "Species")
cluster_heatmaps(scale(iris[c("Petal.Length", "Sepal.Length")]),
clusters,
3,
visxhclust::cluster_colors,
annotation = species_annotation)