powered by
Plot the contribution to a measure by combinations of two categories
two_category_contribution( data, category1, category2, measure, separate = FALSE )
A data frame or tibble
Unquoted names of category columns (can be factor, character or numeric)
Unquoted name of measure
Boolean to indicate whether the plots for different combinations should be in different facets
A ggplot plot object
# NOT RUN { two_category_contribution(ggplot2::diamonds, cut, clarity, price) two_category_contribution(ggplot2::diamonds, clarity, cut, price, separate = TRUE) # }
Run the code above in your browser using DataLab