div_test_plot: Diversity test plotting

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/div_test_plot.R

Description

Plot of diversity comparison between groups of samples

Usage

1
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

div_test, hill_div, div_part

Examples

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)

hilldiv documentation built on Oct. 1, 2019, 5:04 p.m.