Add bracket annotations for statistical comparisons on a ggplot
ggbracket.Rd
This function adds bracket annotations and p-value labels to a ggplot, based on t-tests between groups.
Arguments
- plt
A ggplot object with a grouping variable mapped to the x-axis.
- pad
Numeric, padding value for the annotations.
- offset
Numeric, unused in this implementation.
- sig.cutoff
Numeric, significance level threshold. Comparisons with p-values below this are annotated.
- ci.func
Function to compute confidence intervals, default is mean_cl_normal.