as.treedata.phylo {treeio}R Documentation

as.treedata

Description

convert phylo to treedata

Usage

## S3 method for class 'phylo'
as.treedata(tree, boot = NULL, ...)

## S3 method for class 'pml'
as.treedata(tree, type = "ml", ...)

Arguments

tree

input tree, a phylo object

boot

optional, can be bootstrap value from ape::boot.phylo

...

additional parameters

type

one of 'ml' and 'bayes' for inferring ancestral sequences

Details

converting phylo object to treedata object

Author(s)

Guangchuang Yu

Yu Guangchuang


[Package treeio version 1.12.0 Index]