Adds errorbars to a plot.
Usage
add_error_bars_to_plot(data, p, reference_dose, error_bars, conf_int)
Arguments
- data
A data frame from compute_grouped_mean_sd
- p
A ggplot object to add error bars to
- reference_dose
Reference dose value for comparison calculations
- error_bars
Type of errorbars to use (ci, se, sd, null)
- conf_int
Numeric confidence interval level (default: 0.9)
Value
A ggplot2 object with error bars added