Add an outgroup species to a given phylogeny.
Arguments
- phylo
A phylogeny either as a
phylo
(from theape
package) orphylo4
(from thephylobase
package) object.
Examples
phylo <- ape::rcoal(10)
phylo_with_outgroup <- add_outgroup(phylo)
Add an outgroup species to a given phylogeny.
A phylogeny either as a phylo
(from the ape
package) or
phylo4
(from the phylobase
package) object.
phylo <- ape::rcoal(10)
phylo_with_outgroup <- add_outgroup(phylo)