Skip to contents

Add an outgroup species to a given phylogeny.

Usage

add_outgroup(phylo)

Arguments

phylo

A phylogeny either as a phylo (from the ape package) or phylo4 (from the phylobase package) object.

Value

A phylo object

Examples

phylo <- ape::rcoal(10)
phylo_with_outgroup <- add_outgroup(phylo)