echo_subtree: Print subtrees with tips added.

Description Usage Arguments Value Examples

View source: R/echo_subtree.R

Description

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

Usage

1
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

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

wrightaprilm/treeStartR documentation built on Dec. 9, 2019, 4:21 p.m.