as.phylo.Node: Convert a 'Node' to a phylo object from the ape package.

View source: R/node_conversion_ape.R

as.phylo.NodeR Documentation

Convert a Node to a phylo object from the ape package.

Description

This method requires the ape package to be installed and loaded.

Usage

as.phylo.Node(x, heightAttribute = DefaultPlotHeight, ...)

Arguments

x

The root Node of the tree or sub-tree to be converted

heightAttribute

The attribute (field name or function) storing the height

...

any other argument

See Also

Other ape phylo conversions: GetPhyloNr(), as.Node.phylo()

Examples

library(ape)
data(acme)
acmephylo <- as.phylo(acme)
#plot(acmephylo)



data.tree documentation built on Nov. 13, 2023, 1:08 a.m.