Learn R Programming

slendr (version 1.1.0)

as.phylo.slendr_phylo: Convert an annotated slendr_phylo object to a phylo object

Description

This function servers as a workaround around a ggtree error: Error in UseMethod("as.phylo") : no applicable method for 'as.phylo' applied to an object of class "c('phylo', 'slendr_phylo')"

Usage

# S3 method for slendr_phylo
as.phylo(x, ...)

Value

Standard phylogenetic tree object implemented by the R package ape

Arguments

x

Tree object of the class slendr_phylo

...

Additional (unused) arguments of the as.phylo S3 method