measure_distribution_over_time {ezEDA}R Documentation

Plot the change of distribution of a numeric (measure) column over time

Description

Plot the change of distribution of a numeric (measure) column over time

Usage

measure_distribution_over_time(data, measure, time, bwidth = NULL)

Arguments

data

A data frame or tibble

measure

Unquoted column name of containing numbers (measure)

time

Unquoted name of column containing the time object

bwidth

width of bin for histogram (by default uses binwidth for 30 bins)

Value

A ggplot plot object

Examples

h1 <- round(rnorm(50, 60, 8), 0)
h2 <- round(rnorm(50, 65, 8), 0)
h3 <- round(rnorm(50, 70, 8), 0)
h <- c(h1, h2, h3)
y <- c(rep(1999, 50), rep(2000, 50), rep(2001, 50))
df <- data.frame(height = h, year = y)
measure_distribution_over_time(df, h, year)

[Package ezEDA version 0.1.1 Index]