[R] how can I reorder a dendrogram?

2008-03-20 Thread Thomas Walter
Hi! I am trying to reorder a dendrogram via reorder.dendrogram. However, I observed some problems with this, and I will illustrate them with an example. Take the following clustering problem: datamatrix - matrix(c(2,2,2.5,2,1.5,2,2,1.5,2,2.5, 6,2,6.5,2,5.5,2,6,1.5,6,2.5,

Re: [R] how can I reorder a dendrogram?

2008-03-20 Thread Thomas Walter
Oups ... sorry, actually I found the problem. The problem lies not with the reordering but with the construction of the dendrogram: if a hierarchical method is used, there are never more than 2 branches for a node. Therefore, the reordering does not give the expected result. I will have to try

Re: [R] how can I reorder a dendrogram?

2008-03-20 Thread Philippe Grosjean
Hello, Perhaps, you should chose another toy example closer to the reality. Cases with exactly same distance rarely occur in the field. You should, at least, add some random error: datamatrix - matrix(c(2,2,2.5,2,1.5,2,2,1.5,2,2.5, 6,2,6.5,2,5.5,2,6,1.5,6,2.5, 4,4,4.5,4,3.5,4,4,3.5,4,4.5) +