Given a tree or a list of taxa,
EnforceOutgroup() rearranges the ingroup
and outgroup taxa such that the two are sister taxa across the root, without
changing the relationships within the ingroup or within the outgroup.
EnforceOutgroup(tree, outgroup) # S3 method for phylo EnforceOutgroup(tree, outgroup) # S3 method for character EnforceOutgroup(tree, outgroup)
Either a tree of class
phylo; or (for
a character vector listing the names of all the taxa in the tree, from which
a random tree will be generated.
Character vector containing the names of taxa to include in the outgroup.
EnforceOutgroup() returns a tree of class
phylo where all
outgroup taxa are sister to all remaining taxa, without modifying the
Other tree manipulation:
tree <- EnforceOutgroup(letters[1:9], letters[1:3]) plot(tree)