powered by
data.tree
To read from Newick, you can use the ape package, and convert the resulting phylo object to a data.tree structure.
ape
phylo
ToNewick(node, heightAttribute = DefaultPlotHeight, ...)
The root Node of a tree or sub-tree to be converted
Node
The attribute (field name, method, or function) storing or calculating the height for each Node
parameters that will be passed on the the heightAttributeName, in case it is a function
Other Conversions from Node: as.dendrogram.Node()
as.dendrogram.Node()
data(acme) ToNewick(acme) ToNewick(acme, heightAttribute = NULL) ToNewick(acme, heightAttribute = function(x) DefaultPlotHeight(x, 200)) ToNewick(acme, rootHeight = 200)
Run the code above in your browser using DataLab