plot_total_number_infections: Total number of infections

plot_total_number_infectionsR Documentation

Total number of infections

Description

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

Usage

plot_total_number_infections(inf_chain, pad_chain = TRUE)

Arguments

inf_chain

the data table with infection history samples from serosolver

pad_chain

if TRUE, pads the infection history MCMC chain to have entries for non-infection events

Value

two ggplot2 objects

See Also

Other infection_history_plots: calculate_infection_history_statistics(), plot_antibody_data(), plot_antibody_predictions(), plot_cumulative_infection_histories(), plot_estimated_antibody_model(), plot_individual_number_infections(), plot_infection_history_chains_indiv(), plot_infection_history_chains_time(), plot_model_fits(), plot_posteriors_infhist()

Examples

## Not run: 
data(example_inf_chain)
plot_total_number_infections(example_inf_chain)

## End(Not run)

adamkucharski/serosolver documentation built on Aug. 16, 2024, 3:31 a.m.