powered by
distribution_plot
distribution_plot( data, x, facet_x = NULL, nbins = 20, use_theme = theme_ez, size = 11, env = parent.frame() )
A data.frame.
A named character value. Evaluates to a column.
A character value. Evaluates to a column.
Number of bins for histogram. Default is 20.
ggplot theme function
theme size for use_theme(). Default is 14.
use_theme()
environment for evaluating expressions.
n = 100 df = data.frame(residuals = rnorm(n), group1 = sample(c("a", "b"), n, replace = TRUE)) distribution_plot(df, "residuals") distribution_plot(df, "residuals", "group1")
Run the code above in your browser using DataLab