plot_distributions: Plot distributions

View source: R/plot_distributions.R

plot_distributionsR Documentation

Plot distributions

Description

Function that generates distribution plots

Usage

plot_distributions(
  object,
  plot = TRUE,
  plot.dir = NULL,
  scales.free = FALSE,
  facets.color = c("#ed553b", "#3caea3", "#0568bf"),
  shade.alpha = 0.1
)

Arguments

object

The object returned from calling function intervention_effect.

plot,

character, directory to save pdf plot files

scales.free,

logical, FALSE (default): all plots have the same x-axis and y-axis ticks, TRUE: free x-axis and y-axis ticks

facets.color,

character, colors for sample, conditional, and causal statistics

shade.alpha,

numeric, alpha value (opaqueness) for shaded areas, 0 (transparent) ... 1 (opaque)

Value

plot_distributions returns ggplot2 code for density plots

References

Gische, C., Voelkle, M.C. (2021) Beyond the mean: a flexible framework for studying causal effects using linear models. Psychometrika (advanced online publication). https://doi.org/10.1007/s11336-021-09811-z


christian-gische/causalSEM documentation built on April 26, 2023, 10:36 p.m.