category_contribution: Plot the contribution of different categories to a measure

Description Usage Arguments Value Examples

View source: R/contributions.R

Description

Plot the contribution of different categories to a measure

Usage

1

Arguments

data

A data frame or tibble

category

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

measure

Unquoted name of measure

Value

A ggplot plot object

Examples

1
2
category_contribution(ggplot2::diamonds, cut, price)
category_contribution(ggplot2::diamonds, clarity, price)

Example output

Registered S3 method overwritten by 'GGally':
  method from   
  +.gg   ggplot2

ezEDA documentation built on June 29, 2021, 9:05 a.m.