View source: R/phyloseq_adonis.R
phyloseq_adonis | R Documentation |
Permutational multivariate analysis of variance using distance matrices (PERMANOVA) for phyloseq objects
phyloseq_adonis(
physeq,
group.var = NULL,
method = "bray",
pairwise = FALSE,
add_permdisp = TRUE,
permut = 999,
permdisp_type = "median",
p.adj = "fdr",
all_results = TRUE,
comparison_sep = ".",
...
)
physeq |
A phyloseq-class object |
group.var |
Variable name (contained in |
method |
Distance/dissimilarity method (as character string; see |
pairwise |
Logical, perform pairwise adonis (dafault, FALSE) |
add_permdisp |
Logical; if TRUE (default), results of tests for homogeneity of multivariate dispersions will be added to output (see |
permut |
Number of permutations required |
permdisp_type |
Use the spatial median (default) or the group centroid for the analysis for homogeneity of multivariate dispersions (see |
p.adj |
Logical or character; if TRUE, adjust P-values for multiple comparisons with FDR; if character, specify correction method from |
all_results |
Logical, return results of adonis and data subsets for each pairwise comparison |
comparison_sep |
Character string to separate the levels of independent variable the in the pairwise comparison names (default, ".") |
... |
Additional arguments will be passed to |
Currently, only categorical variables (factors) are supported in 'group.var'.
List with adonis and permdisp results
adonis
, betadisper
, adonis_pairwise
data("GlobalPatterns")
phyloseq_adonis(physeq = GlobalPatterns, group.var = "SampleType", all_results = FALSE, pairwise = TRUE, permut = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.