Bar plot with biomarker effect on response per treatment arm
wrapper_bar_plot_biomarker.Rd
Bar plot with biomarker effect on response per treatment arm
Usage
wrapper_bar_plot_biomarker(
data,
response_var,
biomarker_var,
treatment_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
)
Arguments
- data
Data frame.
- y_type
Possible values: "Proportion" or "Count"
- strat2_var
Name of the second stratification variable.
- colors_bar
Vector with colors for treatment X response interaction. Alternatively,
- method
One of the methods: c("facet", "dodge_facet", "dodge_facet2", "facet2", "dodge")