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 <pa...@nottingham.ac.uk> > Hi > > I would like to create a dendrogram in R which has colored branches, like > the one shown below. > <http://r.789695.n4.nabble.com/file/n4672993/dendrogram.png> > > So far I used following commands to create a standard dendrogram: > > > 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 > > How should I modify this code to obtain a desired result ? > > Thanks in advance for your help. > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/How-to-create-a-dendrogram-with-colored-branches-tp4672993.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Robin Cura Ingénieur d'Étude à l'UMR Géographie-cités <http://www.parisgeo.cnrs.fr> ANR TransMonDyn <http://www.transmondyn.parisgeo.cnrs.fr> [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.