View source: R/method-as.treedata.R
convert_to_treedata | R Documentation |
convert dataframe contained hierarchical relationship or other classes to treedata class
convert_to_treedata(data, type = "species", include.rownames = FALSE, ...)
data |
data.frame, such like the tax_table of phyloseq. |
type |
character, the type of datasets, default is "species", if the dataset is not about species, #' such as dataset of kegg function, you should set it to "others". |
include.rownames |
logical, whether to set the row names as the tip labels, default is FALSE. |
... |
additional parameters. |
treedata class.
Shuangbin Xu
## Not run:
data(hmp_aerobiosis_small)
head(taxda)
treedat <- convert_to_treedata(taxda, include.rownames = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.