Learn R Programming

phytools (version 0.3-72.1)

phylo.toBackbone: Converts tree to backbone or vice versa

Description

Converts between "phylo" and "backbonePhylo".

Usage

phylo.toBackbone(x, trans, ...)
backbone.toPhylo(x)

Arguments

x
an object of class "phylo" (for phylo.toBackbone); or an object of class backbone.toPhylo (for backbone.toPhylo).
trans
data frame containing the attributes necessary to translate a backbone tree to an object of class "backbonePhylo". The data frame should contain the following variables: tip.label: the tip labels in the input tree (not all need b
...
optional arguments.

Value

  • Either an object of class "phylo" or an object of class "backbonePhylo", depending on the method.

See Also

plot.backbonePhylo