viz_classbalance.Rd
Visualise Class Imbalance
viz_classbalance(data, variable, n_max = 25)
data | A data.frame. |
---|---|
variable | target variable to show balance for. |
n_max | integer, maximum number of classes shown before lumping. Defaults to 25. |
ggplot2 object.
viz_classbalance(mnist_sample, class)