Description Usage Arguments Value Author(s) Examples
View source: R/effect.size.adonis.R
The adonis function in vegan package is used to analyze the effect of each variable of one data frame on another data matrix. It can be metadata such as age and gender, the effect on the gut microbiota. It can also be each OTU in the gut microbiota, the effect on the distance matrix of inflammatory factors.
1 | effect.size.adonis(data1, data2, signif = TRUE, barplot = TRUE)
|
data1 |
a matrix, dependent variable, equivalent to y of y ~x |
data2 |
a data frame, independent variable, equivalent to x of y ~x |
signif |
select the significant variables |
barplot |
show the barplot |
a ggplot2 function
Zhonghui Gai
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.