Skip to contents

Plotting functions for absolute forecast scores Plot average score over time for model comparison

Usage

plot_score_t(
  scores,
  metric,
  model_z_order = NULL,
  horizon_time_in_weeks = NULL
)

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.

metric

Metric to plot.

model_z_order

z-order in which to overplot the individual models, ascending (so the last named model is plotted on top). If NULL (default), plot the the models in order of overall score, so that the lowest (best) scoring models are on top.

horizon_time_in_weeks

horizon time in weeks to summarize over, default is NULL which means that the scores are summarized over the nowcast period and the 4 week forecast period

Value

a ggplot object plotting the magnitude of the avg score across locations at each forecast date