Plot interval width
plot_width( predictions_cards, facet_rows = "forecast_date", facet_cols = "forecaster", grp_vars = c("forecaster", "forecast_date", "ahead"), avg_vars = c("geo_value"), levels = c(0.5, 0.7, 0.9) )
predictions_cards | tibble of predictions
that are all for the same prediction task, meaning they are for the same
response, incidence period,and geo type. Forecasts may be for a
different forecast date or forecaster.
A predictions card may be created by the function
|
---|---|
facet_rows | A variable name to facet data over. Creates a
separate row of plots for each value of specified variable. Can be used
with |
facet_cols | Same as |
grp_vars | variables over which to compare widths The first determines the color of the lines while the rest will be faceted over |
avg_vars | variables over which we compute quantiles. |
levels | Quantile levels for the summary of interval width, to be
plotted. For example, |
Interval width does not depend on the actual outcome, so this function can be called on predictions cards in addition to score cards.