Learn R Programming

tidyposterior (version 1.0.1)

autoplot.posterior_diff: Visualize the Posterior Distributions of Model Differences

Description

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

Usage

# S3 method for posterior_diff
autoplot(object, size = 0, ...)

Value

A ggplot2::ggplot() object using geom_density

faceted by the models being contrasted (when there are 2 or more contrasts).

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

Examples

Run this code
data(ex_objects)
library(ggplot2)
autoplot(contrast_samples)

Run the code above in your browser using DataLab