cluster_within_group.Rd
Cluster within and between Groups
cluster_within_group(mat, factor)
mat | A matrix where clustering is applied on columns. |
---|---|
factor | A categorical vector. |
The clustering is firstly applied in each group, then clustering is applied
to group means. The within-group dendrograms and between-group dendrogram
are finally connected by merge_dendrogram
.
In the final dendrogram, the within group dendrograms are enforced to be flat lines to emphasize that the within group dendrograms have no sense to compare to between-group dendrogram.
A dendrogram
object. The order of columns can be retrieved by order.dendrogram
.