Description Usage Arguments Value Examples
View source: R/measure-distribution.R
Plot the distribution of a numeric (measure) column differentiated by two categories
1 2 3 4 5 6 7 | 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
1 2 | measure_distribution_by_two_categories(ggplot2::mpg, hwy, class, fl)
measure_distribution_by_two_categories(ggplot2::diamonds, carat, cut, clarity)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.