text_placr {treestartr} | R Documentation |
Add tips to tree via taxon list
Description
Add tips according to csv or tsv file of taxon names and taxa that form the clade into which you"d like to insert the tip. One column should be called 'taxon', and should contain the taxon to be placed. The other column should be called 'clade' and contain the taxon with which the taxon to be placed will form a group. Each member of the clade will be placed on its own line. An example of this file can be seen in 'inst/extdat a/mrca_df.tsv'
Usage
text_placr(tree, mrca_df, echo_subtrees = NULL, echo_revbayes = NULL)
Arguments
tree |
Starting tree; object of type phylo |
mrca_df |
Dataframe containing a column of the taxa you'd like to place and one column with the clade into which you'd like to place it |
echo_subtrees |
Boolean; Print newick subtree with missing taxa added to screen. Default FALSE. |
echo_revbayes |
Boolean; Print clade constraints with missing taxa added to screen, formatted for RevBayes fossilized birth-death analysis. Default FALSE. |
Value
tree Phylo object containing the starting tree, and all tips that were added.
Examples
text_placr(tree, mrca_df)