[R] Eliminating case numbers in a dendrogram

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Jul 18 19:06:27 CEST 2010



On 18.07.2010 19:02, Holger Steinmetz wrote:
>
> Hi folks,
>
> I conducted a hierarchical cluster analysis. As I wanted to illustrate the
> result, I created a dendrogram with the code
>
> plot(as.dendrogram(fit),sub="",xlab="",ylab="Heterogeneity",nodePar =
> list(lab.cex=.5,pch=NA,xlab=""))
>
> However, the dendrogram contains the case numbers and, as I have N = 300,
> looks not very nice.
>
> Can anybody tell me how to prevent the case numbers?

You do not want any labels???

In that case, see argument "leaflab" in ?plot.dendrogram

Uwe Ligges


> Thanks in advance
> Holger
> http://r.789695.n4.nabble.com/file/n2293207/Dendrogram.jpeg



More information about the R-help mailing list