Skip to contents

Make a multi-panel figure summarizing relative performance.

Usage

compose_rel_performance_fig(
  rel_score_heatmap,
  rel_score_dist,
  abs_score_by_time,
  total_admissions,
  rel_score_dist_by_time,
  rel_score_dist_by_location,
  time_period
)

Arguments

rel_score_heatmap

heatmap of relative score by forecast date and location

rel_score_dist

distibution plot comparing overall distribution of relative scores across forecast_date, date, location, and model

abs_score_by_time

timeseries plot of absolute score across by forecast date

total_admissions

timeseries plot of total hospital admissions by day

rel_score_dist_by_time

plot of the distribution of (location -specific) relative score values by forecast_dat.

rel_score_dist_by_location

plot of the distribution of (date- specific) relative score values by location.

time_period

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

Value

ggplot object with all the elements combined