measure_distribution_by_two_categories {ezEDA}R Documentation

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

Description

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

Usage

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

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

[Package ezEDA version 0.1.1 Index]