Skip to contents

Make Figure 4

Usage

make_fig4(
  fig4_rel_crps_heatmap,
  fig4_rel_crps_hist,
  fig4_avg_crps,
  fig4_natl_admissions,
  fig4_rel_crps_over_time,
  fig4_rel_crps_by_location,
  time_period,
  fig_file_dir
)

Arguments

fig4_rel_crps_heatmap

heatmap of relative crps by forecast date and location

fig4_rel_crps_hist

histogram comparing overall distribution of crps scores across forecast_date, date, location, and model

fig4_avg_crps

avg crps across locations by forecast date

fig4_natl_admissions

national admissions by day

fig4_rel_crps_over_time

relative crps across locations by forecast date

fig4_rel_crps_by_location

avg crps across forecast dates by state

time_period

string to save fig as, either "real_time" or "all_time"

fig_file_dir

Path to save figures

Value

ggplot object with all the elements combined