Skip to content
Back to formatted view

Raw Message

Message-ID: <16122.38996.345173.950228@galadriel.ci.tuwien.ac.at>
Date: 2003-06-26T06:53:08Z
From: Friedrich Leisch
Subject: dendrograms
In-Reply-To: <3A7519E3-A6F8-11D7-A702-00039390FFC4@stat.cmu.edu>

>>>>> On Wed, 25 Jun 2003 06:31:49 -0400,
>>>>> Edoardo Airoldi (EA) wrote:

  > 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 ...

-- 
-------------------------------------------------------------------
                        Friedrich Leisch 
Institut f?r Statistik                     Tel: (+43 1) 58801 10715
Technische Universit?t Wien                Fax: (+43 1) 58801 10798
Wiedner Hauptstra?e 8-10/1071      Friedrich.Leisch at ci.tuwien.ac.at
A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch