Hi Henry,
I suppose the two trees do not have the same topology (otherwise there
would be no difficulty). Have you considered using rotateConstr() on the
second tree? That'd be something like:
tree2 <- rotateConstr(tree2, tree1$tip.label)
The node numbering won't be changed, so you can still nodelabels()
without trouble.
Best,
Emmanuel
Le 06/05/2014 11:25, Ferguson-Gow, Henry a écrit :
Dear List
I am trying to plot two trees facing each other with pie charts at the nodes
indicating marginal likelihoods of an ancestral state. I have broken the
plotting frame into 3 sections, with one in the centre for the tip labels. I am
using text(rep()) to plot the tip labels into this section, but they do not
match up with the tips plotted by the ladderised tree.
It seems like the plot() function is not plotting the tips in the edge order,
and so when the tip labels are written in 1:n order, they do not match up. How
can I reorder the tip labels to match the order in which the tips are plotted
by plot()? I am happy with the tip order on the plotted tree, so I would rather
work out how to reorder the tip labels in the text() command, rather than
reorder the tips on the tree.
I hope that makes sense!
Henry Ferguson-Gow
[[alternative HTML version deleted]]
_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/
_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/