draw.clust {maptree}R Documentation

Graph a Hierarchical Cluster Tree

Description

Graph a hierarchical cluster tree of class twins or hclust using shaded square symbols at observations.

Usage

  draw.clust (cluster, cex=par("cex"), pch=par("pch"), size=2.5*cex, 
      col=NULL, nodeinfo=FALSE, cases="obs", new=TRUE)

Arguments

cluster object of class hclust or twins.
cex size of text, par parameter.
pch shape of symbol at leaves, par parameter.
size size in cex units of symbol at leaves.
col vector of colors from hsv, rgb, etc, or if NULL, then use rainbow, or if gray or grey, then use gray.
nodeinfo if TRUE, add a line at each node with number of observations included in each leaf.
cases label for type of observations.
new if TRUE, call plot.new.

Details

An alternative to pltree and plot.hclust.

Value

The vector of colors supplied or generated.

Author(s)

Denis White, white.denis@epa.gov

See Also

agnes, diana, hclust, draw.tree, map.groups

Examples

  library (cluster)
  data (oregon.bird.dist)

  draw.clust (prune.clust (agnes (oregon.bird.dist), k=6))

[Package Contents]