distribution_plot: distribution_plot

distribution_plotR 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 use_theme(). Default is 14.

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

ezplot documentation built on Nov. 26, 2023, 5:07 p.m.