Skip to contents

Generate boxplots for multiple variables in one faceted or dodged panel.

Usage

wrapper_box_plot_yvars_core_strat(
  data,
  y_vars,
  x_var = NULL,
  dodge_var = NULL,
  facet_var = NULL,
  color_point_var = NULL,
  strat1_var = NULL,
  strat2_var = NULL,
  colors_box = NULL,
  colors_point = NULL,
  variable_names = NULL,
  title = TRUE,
  xlab = TRUE,
  ylab = TRUE,
  strat1_label_both = TRUE,
  strat2_label_both = TRUE,
  legend_colors_box_title = TRUE,
  legend_colors_point_title = TRUE,
  legend_position = "right",
  facet_label_both = TRUE,
  show_total_counts = FALSE,
  show_median = FALSE,
  point_plot = TRUE,
  point_size = 1,
  point_shape = 20,
  point_alpha = 1,
  point_stroke = 0.8,
  label_size = 3.5,
  label_nudge = 0.025,
  title_size = NULL,
  strip_text_size = NULL,
  facet_scales = "fixed",
  facet_nrow = NULL,
  facet_ncol = NULL,
  ylim = NULL,
  scale_y_continuous_custome = scale_y_continuous(),
  axis_text_x_angle = 0,
  axis_text_x_vjust = 1,
  axis_text_x_hjust = 0.5,
  aspect_ratio = NULL,
  background_grid_major = "none",
  strat_scales = "fixed",
  strat1_nrow = 1,
  strat1_ncol = NULL,
  strat2_nrow = NULL,
  strat2_ncol = 1,
  less_legends = FALSE,
  names_to = "name",
  values_to = "value"
)

Arguments

data

Data frame.

strat1_var

Name of the first stratification variable.

strat2_var

Name of the second stratification variable.