Skip to contents

Make a figure of the percent of locations with a better forecast with ww over time

Usage

make_fig4_pct_better_w_ww(scores, eval_hosp_data, days_to_show_prev_data = 14)

Arguments

scores

A tibble of scores by location, forecast date, date and model, containing the outputs of scoringutils::score() on samples plus metadata transformed into a tibble.

eval_hosp_data

The retrospective hospital admissions data for each state and for all dates, used to generate national hospital admissions

days_to_show_prev_data

An ingeger indicating how many days before the last forecast date to show the data, default is 14

Value

a ggplot object containing a stacked bar chart of the percent of states with imprved forecasts from wastewater by forecast date alongside daily national hospital admissions