Rdocumentation
powered by
Learn R Programming
ggphylo (version 0.1)
as.character.phylo: Turns a phylo object into a Newick format string representation, including NHX annotations if the tree contains any tags.
Description
Turns a phylo object into a Newick format string representation, including NHX annotations if the tree contains any tags.
Usage
"as.character" (phylo, digits = 10, ignore.tags = F)
Arguments
phylo
input phylo object
digits
integer, the number of digits to output when formatting branch lengths
ignore.tags
boolean, whether or not to ignore tags when creating the Newick / NHX string. When FALSE, tags will be included in the string as NHX annotations.
Value
character string representing the phylo object