as.phylo.treeshape {apTreeshape}R Documentation

Conversion among tree objects

Description

as.phylo is a generic function - described in the APE package - which converts an object into a tree of class "phylo". This method is an adataption of this generic method to convert objects of class "treeshape" in objects of class "phylo".

Usage

## S3 method for class 'treeshape'
as.phylo(x, ...)

Arguments

x

An object of class"treeshape".

...

further arguments to be passed to or from other methods.

Value

An object of class "phylo".

Author(s)

Michael Blum <michael.blum@imag.fr>
Nicolas Bortolussi <nicolas.bortolussi@imag.fr>
Eric Durand <eric.durand@imag.fr>
Olivier Francois <olivier.francois@imag.fr>

See Also

as.phylo
as.treeshape

Examples


data(primates)
plot(primates)

library(ape)
  
primates.phylo=as.phylo(primates)
plot(primates.phylo)

[Package apTreeshape version 1.5-0.1 Index]