Description Usage Arguments Value Examples
View source: R/measure-distribution.R
Plot the distribution of a numeric (measure) column
| 1 | measure_distribution(data, measure, type = "hist", bwidth = NULL)
 | 
| data | A data frame or tibble | 
| measure | Unquoted column name of containing numbers (measure) | 
| type | Histogram ("hist") or Boxplot ("box") | 
| bwidth | width of bin for histogram (by default uses binwidth for 30 bins) | 
A ggplot plot object
| 1 2 3 4 5 | measure_distribution(ggplot2::diamonds, price)
measure_distribution(ggplot2::mpg, hwy)
measure_distribution(ggplot2::mpg, hwy, bwidth = 2)
measure_distribution(ggplot2::mpg, hwy, "hist")
measure_distribution(ggplot2::mpg, hwy, "box")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.