View source: R/function_spp_nodes.R
get_spp_nodes | R Documentation |
This function computes a matrix containing species and their respective ancestral nodes
get_spp_nodes(tree, node.prefix = "N")
tree |
Phylogenetic tree |
node.prefix |
Character indicating the prefix to be used to name nodes, default is the letter "N" |
This is an auxiliary function that, by taking a phylogenetic tree, allows to represent in a matrix format
the relationship between present-day species (tips) and their ancestors (nodes). The function provides an
easy way to obtain certain objects that can be used in other functions, like calc_ancestral_state
A matrix with species in lines and nodes in columns. 1 indicates that the node corresponds to the ancestor of that species and zero indicates that species does not share the ancestor node
data(akodon_newick)
get_spp_nodes(tree = akodon_newick, node.prefix = "N")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.