Skip to contents

Adapted from https://www.pnas.org/doi/10.1073/pnas.2113561119 and https://github.com/reichlab/covid19-forecast-evals/blob/b741b6a24e40c7f2a8ddc41da40c95b23db6df4e/code/figure-model-ranks.R#L11 #nolint

Usage

density_plot_std_rank(scores, models_to_show, time_period, tp_fp, fig_file_dir)

Arguments

scores

df of granular (daily) score across models, locations, forecast dates and horizons

models_to_show

A vector of charcter strings indicating which models from the COVID-19 forecast hub to include in the plot.

time_period

time period that scores are summarized over

tp_fp

string indicating short name for time period to save figure

fig_file_dir

directory to save figure

Value

A ggplot object containing geomridges plots colored by density, indicating the standardized rank for each location-date combo