powered by
Plot the contribution of different categories to a measure
category_contribution(data, category, measure)
A data frame or tibble
Unquoted name of category (can be factor, character or numeric)
Unquoted name of measure
A ggplot plot object
# NOT RUN { category_contribution(ggplot2::diamonds, cut, price) category_contribution(ggplot2::diamonds, clarity, price) # }
Run the code above in your browser using DataLab