Description Usage Arguments Value Author(s) References Examples
Given the descedent node for the tree, the function will return its ancestor node.
1 2 | GetAncestor(phy, node)
|
phy |
an object of class 'phylo'. |
node |
descedant node. |
the ancestor node
Brian O'Meara, Dwueng-Chwuan Jhwueng.
Jhwueng D.C. and O'Meara B.C. 2015. Studying trait evolution in hybrid species on phylogenetic networks. Submitted.
1 2 3 4 5 6 7 8 9 10 | library(ape)
#simulate a tree of 3 taxa
phy<-rtree(3)
#plot the tree
plot(phy)
#descedant node
node<-1
#get the ancestor node, it will return 5.
GetAncestor(phy,node)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.