Skip to contents

Get plot of fit, nowcasted, and forecasted R(t) in each subpopulation

Usage

get_plot_subpop_rt(draws, forecast_date, n_draws_to_plot = 100)

Arguments

draws

A dataframe containing the posterior draws with the data joined to it. This is draws_df output of the call to wwinference(). It expects the following column names: date, pred_value, draw, and name.

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

Value

A ggplot object containing faceted plots of the R(t) estimate in each subpopulation (so wastewater sites + those not on wastewater)