Re: [R] How to create a dendrogram with colored branches

2013-08-03 Thread Gregory Jefferis
On 3 Aug 2013, at 16:47, beginner wrote: > d <- dist(as.matrix(data[,29])) # find distance matrix > hc <- hclust(d)# apply hirarchical clustering > plot(hc,labels=data[,1], main="", xlab="") # plot the dendrogram You haven't given a reproducible example (data is undefined), s

Re: [R] How to create a dendrogram with colored branches

2013-08-03 Thread Robin Cura
Hi, You'll find a usefull post here : http://gastonsanchez.wordpress.com/2012/10/03/7-ways-to-plot-dendrograms-in-r/ For my part, I use the last method (A2R) to plot trees like the figure you posted. HTH, Robin 2013/8/3 beginner > Hi > > I would like to create a dendrogram in R which has co

[R] How to create a dendrogram with colored branches

2013-08-03 Thread beginner
Hi I would like to create a dendrogram in R which has colored branches, like the one shown below. So far I used following commands to create a standard dendrogram: d <- dist(as.matrix(data[,29])) # find distance matrix hc <- hcl