View source: R/utils-evaluation.R
| mosaic_labels | R Documentation |
Cuts the hierarchical clustering carried in a MosaiClusteR result object into
k groups. Works with any method returning a Clust element (an
agnes/hclust object) and/or a DistM.
mosaic_labels(object, k, linkage = "ward")
object |
A MosaiClusteR result (e.g. from |
k |
Number of clusters. |
linkage |
Linkage used when |
An integer vector of cluster labels, named by object.
set.seed(1)
s <- paste0("o", 1:20)
L <- list(matrix(rnorm(20 * 40), 20, dimnames = list(s, NULL)),
matrix(rnorm(20 * 50), 20, dimnames = list(s, NULL)))
fit <- M_ABC(L, numsim = 30)
mosaic_labels(fit, k = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.