From: Ko-Kang Wang (Ko-Kang@xtra.co.nz)
Date: Sat 21 Jul 2001 - 06:59:24 EST
Message-id: <GAELKJBFMIGCMOMAFDBHMEBLCAAA.Ko-Kang@xtra.co.nz>
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@stat.math.ethz.ch [mailto:owner-r-help@stat.math.ethz.ch]On Behalf Of David White
Sent: Saturday, July 21, 2001 6:39 AM
To: r-help@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@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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.1.3 : Wed 10 Mar 2004 - 08:18:21 EST