two_category_contribution: Plot the contribution to a measure by combinations of two...

Description Usage Arguments Value Examples

View source: R/contributions.R

Description

Plot the contribution to a measure by combinations of two categories

Usage

1
2
3
4
5
6
7
two_category_contribution(
  data,
  category1,
  category2,
  measure,
  separate = FALSE
)

Arguments

data

A data frame or tibble

category1, category2

Unquoted names of category columns (can be factor, character or numeric)

measure

Unquoted name of measure

separate

Boolean to indicate whether the plots for different combinations should be in different facets

Value

A ggplot plot object

Examples

1
2
two_category_contribution(ggplot2::diamonds, cut, clarity, price)
two_category_contribution(ggplot2::diamonds,  clarity, cut, price, separate = TRUE)

kviswana/ezEDA documentation built on July 1, 2021, 1:02 p.m.