Skip to contents

Get plot of fit, nowcasted, and forecasted "global" R(t)

Usage

get_plot_global_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 the draws_df output of a 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 the posterior draws of the global R(t) estimate