Description Usage Arguments Value Examples
View source: R/contributions.R
Plot the contribution of different categories to a measure
1 | 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
1 2 | category_contribution(ggplot2::diamonds, cut, price)
category_contribution(ggplot2::diamonds, clarity, price)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.