Visualise Class Imbalance

viz_classbalance(data, variable, n_max = 25)

Arguments

data

A data.frame.

variable

target variable to show balance for.

n_max

integer, maximum number of classes shown before lumping. Defaults to 25.

Value

ggplot2 object.

Examples

viz_classbalance(mnist_sample, class)