Description Usage Arguments Examples
View source: R/ShinyFunctions.R
Given an hclust
object and the number of clusters k
this function reindex the clusters inferred by cutree(hc, k)[hc$order]
, so that
they appear in ascending order. This is particularly useful when plotting
heatmaps in which the clusters should be numbered from left to right.
1 | reindex_clusters(hc, k)
|
hc |
an object of class hclust |
k |
number of cluster to be inferred from hc |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.