Create a bar plot comparing two groups with counts by category.
Usage
plot_imbalanced_groups(
MX,
MY,
x_var,
fill_var,
title = NULL,
x_label = NULL,
y_label = NULL
)
Arguments
- MX
A data frame for the first group.
- MY
A data frame for the second group.
- x_var
Name of the variable for the x-axis (string).
- fill_var
Name of the variable for the fill color (string).
- title
Plot title (optional).
- x_label
Label for the x-axis (optional).
- y_label
Label for the y-axis (optional).