Learn R Programming

scoringutils (version 1.2.2)

plot_interval_coverage: Plot Interval Coverage

Description

Plot interval coverage

Usage

plot_interval_coverage(scores, colour = "model")

Value

ggplot object with a plot of interval coverage

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".

Examples

Run this code
# \dontshow{
  data.table::setDTthreads(2) # restricts number of cores used on CRAN
# }
scores <- score(example_quantile)
scores <- summarise_scores(scores, by = c("model", "range"))
plot_interval_coverage(scores)

Run the code above in your browser using DataLab