[R] plotting dendrograms

Ko-Kang Wang Ko-Kang at xtra.co.nz
Mon Jul 23 21:43:11 CEST 2001


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:

> ?tree
Error in help(tree) : No documentation for `tree' in specified packages
and libraries:
  you could try `help.search("tree")'
> library(MASS)
> ?tree
Error in help(tree) : No documentation for `tree' in specified packages
and libraries:
  you could try `help.search("tree")'
> library(mva)
> ?tree
Error 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list