Bar plot with treatment effect on response per biomarker subgroup
wrapper_bar_plot_treatment.Rd
Bar plot with treatment effect on response per biomarker subgroup
Usage
wrapper_bar_plot_treatment(
data,
response_var,
treatment_var,
biomarker_var = NULL,
y_type = "Proportion",
facet_var = NULL,
rev = FALSE,
strat2_var = NULL,
colors_bar = NULL,
color_border = "black",
variable_names = NULL,
title = TRUE,
xlab = TRUE,
ylab = TRUE,
strat1_label_both = TRUE,
strat2_label_both = TRUE,
legend_colors_title = TRUE,
legend_position = "right",
facet_label_both = TRUE,
skip_levels = NULL,
method = "facet",
show_proportions = TRUE,
show_counts = TRUE,
show_subtotal_proportions = FALSE,
show_subtotal_counts = FALSE,
show_total_counts = FALSE,
label_size = 4,
label_angle = 0,
label_nudge = 0.025,
title_size = NULL,
strip_text_size = NULL,
facet_scales = "fixed",
ylim = NULL,
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
)