[R] hclust.identify problem

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Thu May 30 06:49:01 CEST 2002


It's a bug in identify.hclust (sic).  `x' is used in two senses.
For the record, please send to R-bugs.

On Thu, 30 May 2002 markhall at gol.com wrote:

> Having some problems with using hclust.identify on my data, I revert to trying
> it out on the example in the help manual.  My result is still the same (as with
> my own data):
>
> data(iris)
> hci <- hclust(dist(iris[,1:4]))
> plot(hci)
> testx<-identify.hclust(hci)
> Error in rect.hclust(x, k = k, x = x$x, cluster = cluster[, k - 1], border
> = "red") :
>         k must be between 2 and 0
> identify.hclust(hci, function(k) print(table(iris[k,5])))
> Error in rect.hclust(x, k = k, x = x$x, cluster = cluster[, k - 1], border
> = "red") :
>         k must be between 2 and 0
>
> Any suggestions?
>
> I am using R : Copyright 2002, The R Development Core Team
> Version 1.5.0  (2002-04-29)  The hclust package was also downloaded
> at the sametime I downloaded the base and other packages (circa May 10th or
> so).
>
> I am using the Windows binaries on a DELL laptop with 256 MB of ram running
> Windows 2000.
>
> The other stuff I have wanted to use in the hclust package seems to be working
> fine.
>
> Best, Mark Hall
>
>
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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