Re: [R-sig-phylo] post-order tree traversal

2011-09-14 Thread Nick Matzke
Ah! Victory is mine. Phylobase does was I was thinking of (/learned in some class) as postorder -- APE is doing something else with "pruningwise". Probably this ambiguity in terminology should be noted somewhere for the innocent. The three labelings of internal nodes... = t

Re: [R-sig-phylo] post-order tree traversal

2011-09-14 Thread Nick Matzke
Thanks...here's the code. However, it looks like the output I am processing does not actually come with post-order labeling. I.e., in the 2nd plot below: node 1 should be labeled 1 node 10 should be labeled 2 node 2 should be labeled 3 node 14 should be labeled 4 node 3 should be labeled 5 ..

Re: [R-sig-phylo] post-order tree traversal

2011-09-14 Thread Liam J. Revell
Hi Nick. If you use the function reorder.phylo(...,order="pruningwise") the resultant tree edge matrix is suitable for post-order traversal (i.e., the daughters always precede the parents in top-to-bottom matrix traversal). This might be helpful for what you would like to do - for instance i

[R-sig-phylo] post-order tree traversal

2011-09-14 Thread Nick Matzke
Hi all, To display the node reconstructions from another program in APE, I need to label my internal nodes as they would be labeled in a post-order tree traversal. Is there an easy way/function to do this somewhere, or do I have to write my own tree-traversing functions? Cheers, Nick --