How to show trees in increasing order ?

45 views
Skip to first unread message

Sid S

unread,
Sep 17, 2024, 2:44:17 AM9/17/24
to BioGeoBEARS
Hi all,

Is it possible to show the BioGeoBEARS output in increasing order as attached in the figure from this paper

Sid. 












1-s2.0-S1055790315003048-gr3.jpg

Sid S

unread,
May 3, 2025, 3:04:45 AMMay 3
to BioGeoBEARS

Re-forwarding for solution 

Nick Matzke

unread,
May 3, 2025, 3:50:22 AMMay 3
to bioge...@googlegroups.com
Hiya,

If by "increasing order", you mean a ladderized tree, the method would be:

1. Ladderize your tree with the ape function ape::ladderize()

plot(tr)
tr2 = ape::ladderize(phy=tr, right=TRUE)
plot(tr2)

2. Save out to a new .newick file

3. Re-run BioGeoBEARS analysis on the ladderized tree, or (if that is too slow), there is a function somewhere that can transfer results on an old tree to a reordered tree. I would have to go find it though.

(reordered tree = tree with the same clades and topology, but with some nodes rotated for visual purposes, e.g. ladderizing or some other configuration)

Cheers,
Nick



--
You received this message because you are subscribed to the Google Groups "BioGeoBEARS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeobears...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/biogeobears/926edc77-b3e5-4ddb-9230-635ab27399den%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages