Learn R Programming

apTreeshape (version 1.2.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 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".

See Also

as.phylo as.treeshape

Examples

Run this code
data(primates)
plot(primates)

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

Run the code above in your browser using DataLab