Skip to contents

Plot quantile coverage

Usage

plot_quantile_coverage(scores, colour = "model")

Arguments

scores

A data.frame of scores based on quantile forecasts as produced by score() or summarise_scores(). Note that "range" must be included in the by argument when running summarise_scores()

colour

According to which variable shall the graphs be coloured? Default is "model".

Value

ggplot object with a plot of interval coverage

Examples

scores <- score(example_quantile)
#> The following messages were produced when checking inputs:
#> 1.  144 values for `prediction` are NA in the data provided and the corresponding rows were removed. This may indicate a problem if unexpected.
scores <- summarise_scores(scores, by = c("model", "quantile"))
plot_quantile_coverage(scores)