measure_distribution_by_two_categories: Plot the distribution of a numeric (measure) column...

Description Usage Arguments Value Examples

View source: R/measure-distribution.R

Description

Plot the distribution of a numeric (measure) column differentiated by two categories

Usage

1
2
3
4
5
6
7
measure_distribution_by_two_categories(
  data,
  measure,
  category1,
  category2,
  bwidth = NULL
)

Arguments

data

A data frame or tibble

measure

Unquoted column name of containing numbers (measure)

category1, category2

Unquoted column names of categories (can be factor, character or numeric)

bwidth

width of bin for histogram (by default uses binwidth for 30 bins)

Value

A ggplot plot object

Examples

1
2
measure_distribution_by_two_categories(ggplot2::mpg, hwy, class, fl)
measure_distribution_by_two_categories(ggplot2::diamonds, carat, cut, clarity)

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