distribution_plot {ezplot} | R Documentation |
distribution_plot
Description
distribution_plot
Usage
distribution_plot(
data,
x,
facet_x = NULL,
nbins = 20,
use_theme = theme_ez,
size = 11,
env = parent.frame()
)
Arguments
data |
A data.frame. |
x |
A named character value. Evaluates to a column. |
facet_x |
A character value. Evaluates to a column. |
nbins |
Number of bins for histogram. Default is 20. |
use_theme |
ggplot theme function |
size |
theme size for |
env |
environment for evaluating expressions. |
Examples
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")
[Package ezplot version 0.7.13 Index]