significative_diff_boxplot: Performs a pair-wise statistical test with posthoc test

Description Usage Arguments Value

View source: R/significative_diff_boxplot.R

Description

This is a convenience function wrapper around 'rstatix' and 'ggpubr' functions.

Usage

1
2
3
4
5
6
7
8
9
significative_diff_boxplot(
  melted,
  type = "Tukey",
  padjmeth = "bonferroni",
  ypos = 1.5,
  step_increase = 0.1,
  pvalue = 0.05,
  no_label = FALSE
)

Arguments

melted

a 'data.frame' with a column 'value', the numeric value of the variable to test. Usually 'melted' will be obtained using 'reshape2::melt()

type

'character', controls the switch between different types of tests: 'Dunn' uses 'rstatix::dunn_test_test()' 'Tukey' uses 'rstatix::tukey_hsd()' and 'Wilcox' uses 'rstatix::wilcox_test()'.

padjmeth

'character', passed to 'p.adjust.method', controls the type of p-value adjustement

ypos

'numeric', graphical parameter

step_increase

'numeric', graphical parameter

pvalue

'numeric', p-value threshold

no_label

'logical', if 'TRUE' remove the labels on the plot

Value

a named list with three elements 'p' a 'ggplot' plot, 'stats' the statistics table of the test and 'p_nop' a 'ggplot' plot


hrvg/regionaldrivers documentation built on June 20, 2021, 7:50 a.m.