beta_plot: Plot a Beta distribution

beta_plotR Documentation

Plot a Beta distribution

Description

Plot a Beta distribution

Usage

beta_plot(alpha, beta, show_hpd = FALSE, level = 0.95, xlim = c(0, 1))

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.

level

Amount of mass in the HPD interval.

Value

A ggplot object.

Examples

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

mark-andrews/isdsr-pkg documentation built on Sept. 13, 2022, 11:47 p.m.