measure_distribution {ezEDA}R Documentation

Plot the distribution of a numeric (measure) column

Description

Plot the distribution of a numeric (measure) column

Usage

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

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

[Package ezEDA version 0.1.1 Index]