R/methods_convert2treedata.R
convert2treedata.Rd
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", ...)
taxonomyTable class (phyloseq package) or other class (data.frame)
type
other params
treedata class object (ggtree package).