div_test_plot {hilldiv} | R Documentation |
Diversity test plotting
Description
Plot of diversity comparison between groups of samples
Usage
div_test_plot(divtest, chart, colour, posthoc, threshold)
Arguments
divtest |
Object outputed by the div_test() function |
chart |
Chart type, either 'box' for boxplot, 'jitter' for jitter plot or 'violin' for violin plot. chart="box" |
colour |
The number of vector items (colours, e.g. '#34k235'), must equal the number of groups that are intended to plot. |
posthoc |
If 'TRUE' pairwise p-values of the posthoc analyses will be ploted. It requires the div_test() object to contain posthoc results. |
threshold |
Maximum p-value to show in pairwise posthoc results (usually 0.05, but could be any other number between 0 an 1). P-values above the threshold will not be showed. |
Details
Diversity test plotting
Value
Chart of (mean) diversities of contrasting groups with optional posthoc results.
Author(s)
Antton Alberdi, anttonalberdi@gmail.com
See Also
Examples
data(bat.diet.otutable)
data(bat.diet.hierarchy)
divtestres <- div_test(bat.diet.otutable,qvalue=0,hierarchy=bat.diet.hierarchy)
div_test_plot(divtestres,chart="box")
div_test_plot(divtestres,chart="violin")
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)
[Package hilldiv version 1.5.1 Index]