Learn R Programming

EBASE (version 1.1.0)

credible_plot: Plot credible intervals for a, R, and b

Description

Plot credible intervals for a, R, and b

Usage

credible_plot(res, params = c("a", "R", "b"))

Value

A ggplot object

Arguments

res

output data frame from ebase

params

character vector indicating which parameters to plot, one to any of a, R, or b, (default all)

Details

This function plots 95% credible intervals (2.5th to 97.5th percentiles, approximate posterior distributions) for a, R and/or b using the output from ebase. Results in the plot are grouped by the ndays argument that was used in ebase.

Examples

Run this code
# plot credible intervals
credible_plot(exres)

Run the code above in your browser using DataLab