Learn R Programming

ProbBayes (version 1.1)

beta_prior_post: Plot of Two Beta Curves

Description

Plot of Prior and Posterior Beta Curves

Usage

beta_prior_post(prior_shapes, post_shapes)

Arguments

prior_shapes

vector of shape parameters of the beta prior

post_shapes

vector of shape parameters of the beta posterior

Value

ggplot2 object containing the graphical display.

Examples

Run this code
# NOT RUN {
 prior_shapes <- c(4, 6)
 post_shapes <- c(19, 16)
 beta_prior_post(prior_shapes, post_shapes)
# }

Run the code above in your browser using DataLab