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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
tree.1<-tree(...) plot(tree.1) text(tree.1) eventually as text(tree.1,cex=0.5) if you got a large tree Petr S. On Fri, 20 Jul 2001, David White wrote:> > 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Can anyone offer any insight on graphing classification dendrograms with > the nodes marked?Try draw.tree in contributed package 'maptree'. -- Denis White US EPA, 200 SW 35th St, Corvallis, Oregon, 97333 USA voice: 541.754.4476, email: white.denis at epa.gov web: www.epa.gov/wed/pages/staff/white/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi, mva should come from the base -at least for Windows, but I think it does come with the base in any platforms. MASS library is the VR package, which has "Various functions from the libraries of Venables and Ripley, `Modern Applied Statistics with S-PLUS' (3rd edition). " You can get it from CRAN (http://cran.r-project.org/) and compile from source. 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: pauljohn at lark.cc.ku.edu [mailto:pauljohn at lark.cc.ku.edu]On Behalf Of Paul E Johnson Sent: Tuesday, July 24, 2001 7:19 AM To: Ko-Kang Wang Subject: Re: [R] plotting dendrograms In R 1.3 on linux, I don't have a function tree in MASS or mva. Where do you get it? I see this:> ?treeError in help(tree) : No documentation for `tree' in specified packages and libraries: you could try `help.search("tree")'> library(MASS) > ?treeError in help(tree) : No documentation for `tree' in specified packages and libraries: you could try `help.search("tree")'> library(mva) > ?treeError in help(tree) : No documentation for `tree' in specified packages and libraries: you could try `help.search("tree")'>pj Ko-Kang Wang wrote:> > 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 > > -------------------------------------------------------------------------------------------- Paul E. Johnson email: pauljohn at ukans.edu Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045 FAX: (785) 864-5700 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._