Function for creating grid boxplots for either benchmark or comparison across variables.

grid_boxplots(
  df,
  x,
  color,
  y,
  id,
  y_left = NULL,
  y_right = NULL,
  facet_var = rlang::sym("VIS_Groep"),
  facet_name_var = rlang::sym("VIS_Groep_naam")
)

Arguments

df

The data frame used to create the plot.

x

The variable used on the x-axis of the plot.

color

The variable used to color the points or bars in the plot.

y

The variable used on the y-axis of the plot.

id

The identifier for selecting the data frame source.

y_left

The variable used on the left y-axis when creating a comparative plot.

y_right

The variable used on the right y-axis when creating a comparative plot.

facet_var

The variable used for facet wrapping.

facet_name_var

The name of the variable used for facet wrapping.

Value

A ggplot object.