Skip to contents

Boxplot

Usage

wrapper_box_plot_core(
  data,
  x_var,
  y_var,
  dodge_var = NULL,
  facet_var = NULL,
  color_point_var = NULL,
  colors_box = NULL,
  colors_point = NULL,
  variable_names = NULL,
  title = TRUE,
  subtitle = TRUE,
  xlab = TRUE,
  ylab = 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,
  drop = FALSE,
  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"
)

wrapper_box_plot_core_strat(
  data,
  x_var,
  y_var,
  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,
  drop = FALSE,
  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,
  strat1_rel_widths = 1,
  strat1_rel_heights = 1,
  strat2_rel_widths = 1,
  strat2_rel_heights = 1,
  less_legends = FALSE
)

Arguments

data

Data frame.

strat1_var

Name of the first stratification variable.

strat2_var

Name of the second stratification variable.

Examples


data(bdata)
data <- bdata

x_var <- "Cell_Of_Origin"
y_var <- "GeneA"

wrapper_box_plot_core(data = data, x_var = x_var, y_var = y_var)