effect.size.adonis: The adonis function in vegan package is used to analyze the...

Description Usage Arguments Value Author(s) Examples

View source: R/effect.size.adonis.R

Description

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.

Usage

1

Arguments

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

Value

a ggplot2 function

Author(s)

Zhonghui Gai

Examples

1
effect.size.adonis(iris[, 1:2], iris[, 3:5, drop = F])

ZhonghuiGai/veganEx documentation built on Dec. 18, 2021, 9:20 p.m.