Re: [R] about rect.hclust

2014-04-28 Thread chris Jhon
Thank you all for your kind help. On Sat, Apr 26, 2014 at 7:03 PM, Tal Galili wrote: > Thank you for mentioning the > dendextendpackage > Gregory. > > As I mention in the package, the dendextend package implements a similar > function as in t

Re: [R] about rect.hclust

2014-04-26 Thread Tal Galili
Thank you for mentioning the dendextendpackage Gregory. As I mention in the package, the dendextend package implements a similar function as in the dendroextra. The big difference between the two is that the dendextend package has an implementati

Re: [R] about rect.hclust

2014-04-26 Thread Gregory Jefferis
On 26 Apr 2014, at 06:41, Gregory Jefferis wrote: > # plot dendrogram coloured by cluster: > ## > library(dendroextras) > cluc=colour_clusters(clu, k=3, groupLabels =TRUE) > plot(cluc) There was a typo in an argument name for colour_clusters in my earlier response (thanks to Dennis Murphy for

Re: [R] about rect.hclust

2014-04-25 Thread Gregory Jefferis
On 26 Apr 2014, at 02:35, chris Jhon wrote: > The question is how to plot the cluster number on the dendrogram plot? Besides Peter Langfelder’s suggestion, you may also want to take a look at CRAN packages dendroextras or dendextend For example using the dendroextras # set up your data ##

Re: [R] about rect.hclust

2014-04-25 Thread Peter Langfelder
On Fri, Apr 25, 2014 at 6:35 PM, chris Jhon wrote: > Hi, > > I am using hclust and cutree to cluster a data frame y and cut it into few > clusters as follows > > y > V1 V2 V3 V4 > A 1 2 3 4 > B 5 6 7 8 > C 9 10 11 12 > D 13 14 15 16 > E 17 18 19 20 >> clu<-hclust(dist(y),method="comple

[R] about rect.hclust

2014-04-25 Thread chris Jhon
Hi, I am using hclust and cutree to cluster a data frame y and cut it into few clusters as follows y V1 V2 V3 V4 A 1 2 3 4 B 5 6 7 8 C 9 10 11 12 D 13 14 15 16 E 17 18 19 20 > clu<-hclust(dist(y),method="complete") clu<-hclust(dist(y),method="complete") > clu Call: hclust(d = dist(y)