Learn R Programming

scoringutils (version 2.1.0)

plot_interval_coverage: Plot interval coverage

Description

Plot interval coverage values (see get_coverage() for more information).

Usage

plot_interval_coverage(coverage, colour = "model")

Value

ggplot object with a plot of interval coverage

Arguments

coverage

A data frame of coverage values as produced by get_coverage().

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
# }
example <- as_forecast_quantile(example_quantile)
coverage <- get_coverage(example, by = "model")
plot_interval_coverage(coverage)

Run the code above in your browser using DataLab