posterior_plot: Print a small example plot with geom_posterior

Description Usage Arguments Value Examples

Description

Print a small example plot with geom_posterior

Usage

1
posterior_plot(data, x, y = "..count..", ...)

Arguments

data

A dataset to use, called at the top layer within ggplot.

x

A character string of the x axis variable name (e.g., values making up the distribution).

y

A grouping variable for generating groups of distributions. Defaults to ..count.. for no groups and displays the density as counts of the number of samples for the value of x.

...

Additional arguments passed to geom_posterior().

Value

Object of class gg, ggplot.

Examples

1
2
# Generate a basic example plot if no data is specified.
posterior_plot()

iamamutt/ggdistribute documentation built on May 8, 2019, 3:12 a.m.