plot_interval_coverage: Plot Interval Coverage

View source: R/plot.R

plot_interval_coverageR Documentation

Plot Interval Coverage

Description

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

data.table::setDTthreads(1) # only needed to avoid issues on CRAN
scores <- score(example_quantile)
scores <- summarise_scores(scores, by = c("model", "range"))
plot_interval_coverage(scores)

scoringutils documentation built on Feb. 16, 2023, 7:30 p.m.