powered by
Permanova between a otutab and a variable
permanova( otutab, envs, norm = TRUE, each = TRUE, method = "adonis", dist = "bray", nperm = 999, ... )
a g_test object with these columns
the test group or factor
relationship
model R-square
model test p_value
whether significant
an otutab data.frame, samples are columns, taxs are rows.
factors need to test
should normalize?(default:TRUE)
test factor one by one, rather than whole
adonis/mrpp/anosim/mantel
if use pcoa or nmds, your can choose a dist method (default: bray)
numbers of permutations to perform
additional
https://blog.csdn.net/qq_42458954/article/details/110390488
data(otutab, package = "pcutils") permanova(otutab, metadata[, c(2:10)]) -> adonis_res print(adonis_res) plot(adonis_res)
Run the code above in your browser using DataLab