Plot interval coverage
Arguments
- scores
A data.frame of scores based on quantile forecasts as produced by
score()
orsummarise_scores()
. Note that "range" must be included in theby
argument when runningsummarise_scores()
- colour
According to which variable shall the graphs be coloured? Default is "model".
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)