bar_error | R Documentation |
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"
)
dataSet |
A |
vD |
A string indicating the name of the numeric dependent variable. |
vI |
A string indicating the name of the categorical independent variable (grouping variable). |
variation |
Type of variation to display: |
title |
Title of the plot. Default is |
label_y |
Label for the Y-axis. Default is |
label_x |
Label for the X-axis. Default is |
A ggplot
object representing the plot.
data(d_e, package = "Analitica")
bar_error(d_e, vD = Sueldo_actual, vI = labor, variation = "sd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.