[R] plotting dendrograms

Ko-Kang Wang Ko-Kang at xtra.co.nz
Fri Jul 20 22:59:24 CEST 2001


Hi David,

I found the mva library to be very useful in this case.  Functions like hclust() is pretty useful and you can specify the method you want to use (like kmeans...etc).

Even use tree(), I think it is possible to add text into it.  I had a look at the tree() documentation by typing:
    ?tree
and found an example:
     library(MASS)
     data(cpus)
     cpus.ltr <- tree(log10(perf) ~ syct+mmin+mmax+cach+chmin+chmax, cpus)
     cpus.ltr
     summary(cpus.ltr)
     plot(cpus.ltr);  text(cpus.ltr)

The last command text(cpus.ltr) adds in the text.

Hope this helps,

Kevin

-------------------------------------------------------------------------------------------- 
Ko-Kang Kevin Wang
Head of Statistical Analysis Division
Software Developers' Klub (SDK)
University of Auckland
New Zealand



-----Original Message-----
From: owner-r-help at stat.math.ethz.ch [mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of David White
Sent: Saturday, July 21, 2001 6:39 AM
To: r-help at stat.math.ethz.ch
Subject: [R] plotting dendrograms



Hello,

Can anyone offer any insight on graphing classification dendrograms with
the nodes marked?

plot(tree()) produces a nice tree structure but there's no acccompanying
text.

Thanks,

D

S. David White
sdavidwhite at bigfoot.com
Columbus, Ohio

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list