Learn R Programming

apTreeshape (version 1.5-0.1)

as.phylo.treeshape: 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 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".

See Also

as.phylo as.treeshape

Examples

Run this code
# NOT RUN {
data(primates)
plot(primates)

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

Run the code above in your browser using DataLab