Learn R Programming

ezEDA (version 0.1.1)

category_contribution: Plot the contribution of different categories to a measure

Description

Plot the contribution of different categories to a measure

Usage

category_contribution(data, category, measure)

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

Run this code
# NOT RUN {
category_contribution(ggplot2::diamonds, cut, price)
category_contribution(ggplot2::diamonds, clarity, price)
# }

Run the code above in your browser using DataLab