group.clust | R Documentation |
Alternative to cutree
that orders pruned groups from
left to right in draw order.
group.clust (cluster, k=NULL, h=NULL)
cluster |
object of class |
k |
desired number of groups. |
h |
height at which to prune for grouping. |
At least one of k
or h
must be specified; k
takes
precedence if both are given.
Normally used with map.groups
. See example.
Vector of pruned cluster membership
Denis White
hclust
,
twins.object
,
cutree
,
map.groups
data (oregon.bird.dist, oregon.grid) group <- group.clust (hclust (dist (oregon.bird.dist)), k=6) names(group) <- row.names(oregon.bird.dist) map.groups (oregon.grid, group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.