View source: R/plot_distributions.R
plot_distributions | R Documentation |
Function that generates distribution plots
plot_distributions(
object,
plot = TRUE,
plot.dir = NULL,
scales.free = FALSE,
facets.color = c("#ed553b", "#3caea3", "#0568bf"),
shade.alpha = 0.1
)
object |
The object returned from calling
function |
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) |
plot_distributions
returns ggplot2 code
for density plots
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.