measure_distribution {ezEDA} | R Documentation |
Plot the distribution of a numeric (measure) column
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
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")