Re: [R] hc2Newick is different than th hclust dendrogram

From: Jose Hleap Lozano <jshleap_at_DAL.CA>
Date: Mon, 04 Apr 2011 09:24:34 -0300

Hi R helpers... I am having troubles because of the discrepancy between the dendrogram plotted from hclust and what is wrote in the hc2Newick file. I've got a matrix C:
hc <- hclust(dist(C))
plot(hc)
with the:
write(hc2Newick(hc),file='test.newick')
both things draw completely different "trees"...

I have also tried with the raw distance matrix D and also the agnes function, but the same happens. The hclus and agnes dendrogram is logical, whereas the newick tree is not.

Thanks for any help!

PS> attached C matrix that is a 112x112 matrix

-- 
Jose Sergio Hleap Lozano, M. Sc.
Ph. D. Student, Dalhousie University
Researcher, SQUALUS Foundation


______________________________________________ R-help_at_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.

Received on Mon 04 Apr 2011 - 12:52:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 04 Apr 2011 - 13:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive