autoplot.posterior_diff: Visualize the Posterior Distributions of Model Differences

Description Usage Arguments Value Examples

Description

A density is created for each contrast in a faceted grid.

Usage

1
2
## S3 method for class 'posterior_diff'
autoplot(object, size = 0, ...)

Arguments

object

An object produced by contrast_models().

size

The size of an effective difference. For example, a 5\ "real" difference.

...

Options passed to geom_line(stat = "density", ...).

Value

A ggplot2::ggplot() object using geom_density faceted by the models being contrasted (when there are 2 or more contrasts).

Examples

1
2
3
data(ex_objects)
library(ggplot2)
autoplot(contrast_samples)

tidyposterior documentation built on March 25, 2021, 5:06 p.m.