Description Usage Arguments Value
View source: R/significative_diff_boxplot.R
This is a convenience function wrapper around 'rstatix' and 'ggpubr' functions.
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
)
|
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 |
a named list with three elements 'p' a 'ggplot' plot, 'stats' the statistics table of the test and 'p_nop' a 'ggplot' plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.