View source: R/table_functions.R
| tax_datatable | R Documentation |
phyloseq-class objectAn interactive table for phyloseq taxonomy.
tax_datatable(
physeq,
abundance = TRUE,
taxonomic_level = NULL,
fact = NULL,
modality = lifecycle::deprecated(),
...
)
physeq |
(required) a |
abundance |
(logical, default TRUE) Does the number of sequences is print |
taxonomic_level |
(default: NULL) a vector of selected taxonomic level using their column numbers (e.g. taxonomic_level = 1:7) |
fact |
(default: NULL) Name of a column in |
modality |
|
... |
Other argument for the datatable function |
A datatable
Adrien Taudière
data("GlobalPatterns", package = "phyloseq")
if (requireNamespace("DT")) {
tax_datatable(subset_taxa(
GlobalPatterns,
rowSums(GlobalPatterns@otu_table) > 10000
))
# Using fact
tax_datatable(GlobalPatterns,
fact = "SampleType"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.