View source: R/node_conversion.R
ToNewick | R Documentation |
data.tree
structure to Newick notationTo read from Newick, you can use the ape
package, and convert the resulting phylo
object to a data.tree
structure.
ToNewick(node, heightAttribute = DefaultPlotHeight, ...)
node |
The root |
heightAttribute |
The attribute (field name, method, or function) storing or calculating the height for each |
... |
parameters that will be passed on the the heightAttributeName, in case it is a function |
Other Conversions from Node:
as.dendrogram.Node()
data(acme)
ToNewick(acme)
ToNewick(acme, heightAttribute = NULL)
ToNewick(acme, heightAttribute = function(x) DefaultPlotHeight(x, 200))
ToNewick(acme, rootHeight = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.