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

plot_std_rank_distribution(scores, models_to_show)

Arguments

scores

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

models_to_show

Character vector indicating which models from the COVID-19 forecast hub to include.

Value

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