Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/div_test_plot.R
Plot of diversity comparison between groups of samples
1 | div_test_plot(divtest, chart, colour, posthoc, threshold)
|
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. |
Diversity test plotting
Chart of (mean) diversities of contrasting groups with optional posthoc results.
Antton Alberdi, anttonalberdi@gmail.com
1 2 3 4 5 6 7 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.