View source: R/singleSpeciesTree.R
singleSpeciesTree | R Documentation |
Generate a single-species tree with appropriate stem branch length
singleSpeciesTree(tree, tip)
tree |
An ape-style phylogenetic tree. |
tip |
A character vector corresponding to one of the species in the phylogeny. |
Ape cannot readily deal with single-species trees. This functions will extract a single-species tree with appropriate branch length to the most recent common ancestor. The tree cannot be plotted, but it can be used for analyses.
A single-species phylo object.
Mast et al. 2015. Paraphyly changes understanding of timing and tempo of diversification in subtribe Hakeinae (Proteaceae), a giant Australian plant radiation. American Journal of Botany.
#load a molecular tree up
data(bird.families)
#extract a single-species tree
tree <- singleSpeciesTree(bird.families, "Rheidae")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.