group.clust: Observation Groups for a Hierarchical Cluster Tree

group.clustR 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 hclust or twins.

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)

maptree documentation built on April 6, 2022, 5:09 p.m.

Related to group.clust in maptree...