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

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

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

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

# S3 method for 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).