powered by
Primarily internal function for posterior.evolrate; can be used to graft a clade into a receptor tree, at the "sticky tip" labeled with "NA".
posterior.evolrate
"NA"
paste.tree(tr1, tr2)
A tree.
receptor tree.
donor clade.
Liam Revell liam.revell@umb.edu
The donor clade needs to have a root edge, even if it is zero length.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
tr1<-rtree(10) tr2<-rtree(10) tr1$tip.label[1]<-"NA" tr2$root.edge<-0 tr3<-paste.tree(tr1,tr2)
Run the code above in your browser using DataLab