Learn R Programming

BioGeoBEARS (version 0.2.1)

prt: Print tree in table format

Description

Learning and using APE's tree structure can be difficult and confusing because much of the information is implicit. This function prints the entire tree to a table, and makes much of the implicit information explicit. It is not particularly fast, but it is useful.

Usage

prt(t, printflag = TRUE, relabel_nodes = FALSE, time_bp_digits = 7, add_root_edge = TRUE, get_tipnames = FALSE, fossils_older_than = 0.6)

Arguments

t
A phylo tree object.
printflag
Should the table be printed to screen? Default TRUE.
relabel_nodes
Manually renumber the internal nodes, if desired. Default FALSE.
time_bp_digits
The number of digits to print in the time_bp (time before present) column. Default=7.
add_root_edge
Should a root edge be added? Default TRUE.
get_tipnames
Should the list of tipnames descending from each node be printed as a string in another column? This is slow-ish, but useful for matching up nodes between differing trees. Default FALSE.
fossils_older_than
Tips that are older than fossils_older_than will be marked as TRUE in a column called fossil. This is not currently set to 0, because Newick files can have slight precision issues etc. that mean not all tips quite come to zero. You can attempt to fix this with average_tr_tips (but make sure you do not inappropriately average in fossils!!).

Value

dtf A data.frame holding the table. (Similar to the printout of a phylo4 object.)

Details

See http://ape.mpl.ird.fr/ape_development.html for the official documentation of R tree objects.

References

http://ape.mpl.ird.fr/ape_development.html

Matzke_2012_IBS

See Also

phylo, average_tr_tips

Examples

Run this code
test=1

Run the code above in your browser using DataLab