Get plot of fit, nowcasted, and forecasted R(t) in each subpopulation
Source:R/figures.R
get_plot_subpop_rt.RdGet plot of fit, nowcasted, and forecasted R(t) in each subpopulation
Arguments
- draws
A dataframe containing the posterior draws with the data joined to it. This is
draws_dfoutput of the call towwinference(). It expects the following column names:date,pred_value,draw, andname.- forecast_date
A string indicating the date we made the forecast, for plotting, in ISO8601 format YYYY-MM-DD
- n_draws_to_plot
An integer indicating how many draws from the posterior to include in the plot, default is
100