R/add_outgroup.R
add_outgroup.Rd
Add an outgroup species to a given phylogeny.
add_outgroup(phylo)
A phylogeny either as a phylo (from the ape package) or phylo4 (from the phylobase package) object.
phylo
ape
phylo4
phylobase
A phylo object
phylo <- ape::rcoal(10) phylo_with_outgroup <- add_outgroup(phylo)