Plots the total number of inferred infections in the MCMC chain as a trace plot and density plot.

plot_total_number_infections(inf_chain, pad_chain = TRUE)

Arguments

inf_chain

the infection-history chain returned by load_mcmc_chains, in long format

pad_chain

if TRUE, adds zero-valued entries for infection events that are absent from the sparse chain

Value

A list containing the MCMC trace plot and posterior density plot.

Examples

if (FALSE) { # \dontrun{
data(example_inf_chain)
plot_total_number_infections(example_inf_chain)
} # }