paste.tree | R Documentation |
Internal function for posterior.evolrate
.
paste.tree(tr1, tr2)
tr1 |
receptor tree. |
tr2 |
donor clade. |
Primarily designed as an internal function for posterior.evolrate
; however, can be used to graft a clade onto a receptor tree at the "sticky tip" labeled with "NA"
.
The donor clade needs to have a root edge, even if it is zero length.
A tree.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
tr1<-rtree(10)
tr2<-rtree(10)
tr1$tip.label[1]<-"NA"
tr2$root.edge<-0
tr3<-paste.tree(tr1,tr2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.