Wraps geom_boxplot
to simplify creating boxplots.
auto_boxplot(
.data,
continuous_outcome,
categorical_variable,
categorical_facets = NULL,
alpha = 0.3,
width = 0.15,
color_dots = "black",
color_box = "red"
)
data
continuous y variable. unquoted column name
categorical x variable. unquoted column name
categorical facet variable. unquoted column name
alpha points
width of jitter
dot color
box color
ggplot
iris %>%
auto_boxplot(continuous_outcome = Petal.Width, categorical_variable = Species)