powered by
Creates a bar plot of group means with error bars representing either the standard deviation (SD) or the standard error (SE).
bar_error( dataSet, vD, vI, variation = "sd", title = "Bar plot with error bars", label_y = "Y Axis", label_x = "X Axis" )
A ggplot object representing the plot.
ggplot
A data.frame or tibble containing the data.
data.frame
tibble
A string indicating the name of the numeric dependent variable.
A string indicating the name of the categorical independent variable (grouping variable).
Type of variation to display: "sd" for standard deviation or "se" for standard error. Default is "sd".
"sd"
"se"
Title of the plot. Default is "Bar plot with error bars".
"Bar plot with error bars"
Label for the Y-axis. Default is "Y Axis".
"Y Axis"
Label for the X-axis. Default is "X Axis".
"X Axis"
data(d_e, package = "Analitica") bar_error(d_e, vD = Sueldo_actual, vI = labor, variation = "sd")
Run the code above in your browser using DataLab