[R] S's plclust and R's hclust

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue May 6 09:20:58 CEST 2003


On Tue, 6 May 2003, Dowkiw, Arnaud wrote:

> Does anyone know how to implement the argument "unit" in R's plclust
> function ? I used to use Splus where this argument exists but it has not
> been implemented in R's plclust. The reason why I switched from Splus to
> R is that Ward's method is not implemented for S's hclust whereas it is
> implemented for R's hclust. What I would need is S's plclust and R's
> hclust together, either in R or in S.
> Many thanks to the ones who will help me solve that trick...

All `unit' does is to rescale the `height' component.  Follow this 
example:

data(USArrests)
hc <- hclust(dist(USArrests), "ward")
plot(hc)
hc1 <- hc
hc1$height <- rank(hc$height)
plot(hc1)


-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list