Skip to contents

Plot interval coverage

Usage

plot_interval_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

# \dontshow{
  data.table::setDTthreads(2) # restricts number of cores used on CRAN
# }
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", "range"))
plot_interval_coverage(scores)