View source: R/plot_functions.R
iNEXT_pq | R Documentation |
Note that this function is quite time-consuming due to high dimensionality in metabarcoding community matrix.
iNEXT_pq(physeq, merge_sample_by = NULL, ...)
physeq |
(required): a |
merge_sample_by |
(default: NULL) if not |
... |
Other arguments for the |
see iNEXT::iNEXT()
documentation
Adrien Taudière
This function is mainly a wrapper of the work of others.
Please make a reference to iNEXT::iNEXT()
if you
use this function.
if (requireNamespace("iNEXT")) {
data("GlobalPatterns", package = "phyloseq")
GPsubset <- subset_taxa(
GlobalPatterns,
GlobalPatterns@tax_table[, 1] == "Bacteria"
)
GPsubset <- subset_taxa(
GPsubset,
rowSums(GPsubset@otu_table) > 20000
)
GPsubset <- subset_taxa(
GPsubset,
rowSums(is.na(GPsubset@tax_table)) == 0
)
GPsubset@sam_data$human <- GPsubset@sam_data$SampleType %in%
c("Skin", "Feces", "Tong")
res_iNEXT <- iNEXT_pq(
GPsubset,
merge_sample_by = "human",
q = 1,
datatype = "abundance",
nboot = 2
)
iNEXT::ggiNEXT(res_iNEXT)
iNEXT::ggiNEXT(res_iNEXT, type = 2)
iNEXT::ggiNEXT(res_iNEXT, type = 3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.