measure_distribution_by_two_categories {ezEDA} | R Documentation |
Plot the distribution of a numeric (measure) column differentiated by two categories
measure_distribution_by_two_categories(
data,
measure,
category1,
category2,
bwidth = NULL
)
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) |
A ggplot plot object
measure_distribution_by_two_categories(ggplot2::mpg, hwy, class, fl)
measure_distribution_by_two_categories(ggplot2::diamonds, carat, cut, clarity)