group.clust {maptree} | R Documentation |
Observation Groups for a Hierarchical Cluster Tree
Description
Alternative to cutree
that orders pruned groups from
left to right in draw order.
Usage
group.clust (cluster, k=NULL, h=NULL)
Arguments
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.
Details
Normally used with map.groups
. See example.
Value
Vector of pruned cluster membership
Author(s)
Denis White
See Also
hclust
,
twins.object
,
cutree
,
map.groups
Examples
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)
[Package maptree version 1.4-8 Index]