measure_distribution: Plot the distribution of a numeric (measure) column

Description Usage Arguments Value Examples

View source: R/measure-distribution.R

Description

Plot the distribution of a numeric (measure) column

Usage

1
measure_distribution(data, measure, type = "hist", bwidth = NULL)

Arguments

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)

Value

A ggplot plot object

Examples

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")

kviswana/ezEDA documentation built on July 1, 2021, 1:02 p.m.