Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1005 Bytes

div_test_plot.md

File metadata and controls

20 lines (17 loc) · 1005 Bytes

div_test_plot()

Last update: hilldiv 1.5.0

Visual comparison between the diversity levels of two or multiple groups of samples, with the option to show the significance values of the pairwise posthoc analyses.

Examples

data(bat.diet.otutable)
data(bat.diet.hierarchy)

#With no post-hoc analyses
divtestres <- div_test(bat.diet.otutable,qvalue=0,hierarchy=bat.diet.hierarchy)
div_test_plot(divtestres,chart="box")
div_test_plot(divtestres,chart="violin")

#With post-hoc analyses
divtest.res.ph <- div_test(bat.diet.otutable,qvalue=0,hierarchy=bat.diet.hierarchy,posthoc=TRUE)
div_test_plot(divtest.res.ph,chart="jitter",posthoc=TRUE,threshold=0.5)