[R] dendrogram

Sean Davis sdavis2 at mail.nih.gov
Wed Jan 4 12:48:42 CET 2006




On 1/4/06 6:03 AM, "Zhesi He" <hezhesi at gmail.com> wrote:

> Dear list,
> 
> Sorry if my question is too easy.
> I now have a class list like
> 
> 1.01.01.01
> 1.01.01.02
> 1.02.01.01
> 1.03.01.01
> ...
> 9.09.09
> 
> I have no problem transferring it to a matrix without those zeros. But
> I really want to have a dengrogram class object so that I can have a
> hierarchical plot.

You didn't really explain what kind of clustering you want to do.  However,
you probably want to do help.search('cluster').  That will give you many
methods for clustering.  Most of them work with either a matrix or a
distance object.  See ?dist for help with the latter.

Sean




More information about the R-help mailing list