category_contribution {ezEDA} | R Documentation |
Plot the contribution of different categories to a measure
category_contribution(data, category, measure)
data |
A data frame or tibble |
category |
Unquoted name of category (can be factor, character or numeric) |
measure |
Unquoted name of measure |
A ggplot plot object
category_contribution(ggplot2::diamonds, cut, price)
category_contribution(ggplot2::diamonds, clarity, price)