Skip to contents

convert data.frame contained hierarchical relationship or other classes to treedata class

Usage

convert2treedata(object, type = "species", ...)

as.treedata(object, type = "species", ...)

# S3 method for class 'data.frame'
convert2treedata(object, type = "species", ...)

# S3 method for class 'taxonomyTable'
convert2treedata(object, type = "species", ...)

Arguments

object

taxonomyTable class (phyloseq package) or other class (data.frame)

type

type

...

other params

Value

treedata class object (ggtree package).