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"
)

Arguments

.data

data

continuous_outcome

continuous y variable. unquoted column name

categorical_variable

categorical x variable. unquoted column name

categorical_facets

categorical facet variable. unquoted column name

alpha

alpha points

width

width of jitter

color_dots

dot color

color_box

box color

Value

ggplot

Examples


iris %>%
auto_boxplot(continuous_outcome = Petal.Width, categorical_variable = Species)