Though your example helped, i am still trying to get exactly what i  
want.
Here´s how i get my dendrogram. and my example... (using "ward"  
instead of average, doesnt make any difference for my case - i believe)

hc=hclust(dist(mymatrix),"average")
hcd=as.dendrogram(hc)
plot(hcd)

the major problem in my case is that my matrix has 196 lines, that  
means the end of the dendrogram has almost 200 end nodes.
ofcourse i know "cut" meanwhile ;) ... but somehow the branches that  
i get by cut dont help me.

If i look at the full dendrogram i have about 25 nodes. i just want  
to label about 5 of them (from the upper end).
Everything that happens below is not of interest for me.  Do you know  
how to label some specific nodes ?

I´ll try max.levels...

thx in advance

m.-




Am 09.03.2007 um 13:52 schrieb Gavin Simpson:

> require(vegan) ## if false install it
> data(varespec)
>
> hc <- hclust(vegdist(varespec, "bray"), method = "ward")
> hc <- as.dendrogram(hc)
>
> ## this is the full dendrogram - too many nodes, so prune
> plot(hc)
>
> ## lets take four clusters and prune it back
> hc.pruned <- cut(hc, h = 1) # can't specify k so read height of first
>                             # plot - cutting at h = 1 gives 4 clusters
>
> # plot only the upper part of the tree showing only the 4 clusters
> plot(hc.pruned$upper, center = TRUE)


	[[alternative HTML version deleted]]

