powered by
NewickTree() encodes a tree as a Newick-format string. This differs from write.tree() in the encoding of spaces as spaces, rather than underscores.
NewickTree()
write.tree()
NewickTree(tree)
NewickTree() returns a character string denoting tree in Newick format.
tree
A tree of class phylo.
phylo
Use tip numbers, rather than leaf labels: as.Newick
as.Newick
NewickTree(BalancedTree(LETTERS[4:9]))
Run the code above in your browser using DataLab