echo_subtree {treestartr}R Documentation

Print subtrees with tips added.

Description

Once a tip has been added to the tree, print the newick-formatted subtree to which the tip was added.

Usage

echo_subtree(tree, mrca_list, tip)

Arguments

tree

Tree to which the tip will be added; object of type phylo

mrca_list

Vector of taxa. The added tip will subtend the MRCA of these taxa

tip

Taxon which will be added to the tree.

Value

tree subtree to which tip was added

Examples

mrca_list <- c("Ursus_arctos", "Ursus_spelaeus", "Ursus_americanus")
tree <- text_placr(tree, mrca_df)
echo_sub <- echo_subtree(tree, mrca_list, "Ursus_abstrusus")

[Package treestartr version 0.1.0 Index]