beta_plot: Plot a Beta distribution

Description Usage Arguments Value Examples

View source: R/bernoulli_models.R

Description

Plot a Beta distribution

Usage

1
beta_plot(alpha, beta, show_hpd = FALSE)

Arguments

alpha

First shape parameter of the Beta distribution.

beta

Second shape parameter of the Beta distribution.

show_hpd

Show the HPD interval as a line segment.

Value

A ggplot object.

Examples

1
2
beta_plot(2, 2)
beta_plot(10, 5)

mark-andrews/barfoo documentation built on July 1, 2020, 12:11 a.m.