Description Usage Arguments Value Examples
Returns a plot showing the distribution of a variable by different levels of another grouping variable. A common application in my work is making sure the distribution doesn't change across different seasons.
1 | check_drift(.data, formula, bins = NULL, theme = NULL)
|
.data |
a data frame containing the data in question |
formula |
a formula with the variable on the lhs and grouping variable on the rhs |
bins |
the number of bins to make. If |
theme |
a sequence of ggplot2 theme objects |
a ggplot2 object showing the distribution of the variable colored by group
1 2 | check_drift(iris, Petal.Width ~ Species, bins = 5)
check_drift(mtcars, cyl ~ am, bins = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.