Skip to content
Prev 33849 / 398513 Next

dendrograms

> Hello all,
  >   I am using libraries (mva,cluster) to produce dendrograms.  With 1000 
  > examples the dendrogram gets too crowded, and i am wondering whether there 
  > is an option (which i cannot find) to set the number of leaf nodes, like 
  > in matlab, and return the plot and the assignment map examples -> leaf 
  > nodes.  Any suggestion is appreciated.  Thanks

Just wondering: did you try help(dendrogram) before sending an email
to r-help with subject "dendrogram"? The examples show you how to cut
a dendrogram at a specified height ...

If you want 10 leafs, you just have to get the height of the 9th
splitting (in element "height" of hclust objects).

help(cutree) might also be of interest ...