Generates a dendrogram plot for hierarchical clustering results,
colored by clusters.
Usage
plot_dendrogram(hc, clusters, k)
Arguments
- hc
A hierarchical clustering object.
- clusters
A numeric vector, specifying the cluster in which each hit is
in. Index 1 is the cluster of hit nr. 1, index 2 of hit nr. 2, etc.
- k
An integer specifying the number of clusters.
Value
A ggplot object representing the dendrogram.