View source: R/grid.dendrogram.R
cluster_between_groups | R Documentation |
Cluster only between Groups
cluster_between_groups(mat, factor)
mat |
A matrix where clustering is applied on columns. |
factor |
A categorical vector. |
The clustering is only applied between groups and inside a group, the order is unchanged.
A dendrogram
object.
m = matrix(rnorm(120), nc = 12)
colnames(m) = letters[1:12]
fa = rep(c("a", "b", "c"), times = c(2, 4, 6))
dend = cluster_between_groups(m, fa)
grid.dendrogram(dend, test = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.