powered by
Alternative to cutree that orders pruned groups from left to right in draw order.
cutree
group.clust (cluster, k=NULL, h=NULL)
object of class hclust or twins.
hclust
twins
desired number of groups.
height at which to prune for grouping.
Vector of pruned cluster membership
Normally used with map.groups. See example.
map.groups
hclust, twins.object, cutree, map.groups
twins.object
# NOT RUN { 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) # }
Run the code above in your browser using DataLab