Learn R Programming

scoringutils (version 0.1.7.2)

quantile_coverage: Plot Quantile Coverage

Description

Plot quantile coverage

Usage

quantile_coverage(
  summarised_scores,
  colour = "model",
  facet_formula = NULL,
  facet_wrap_or_grid = "facet_wrap",
  scales = "free_y"
)

Arguments

summarised_scores

Summarised scores as produced by eval_forecasts. Make sure that "quantile" is included in summarise_by when producing the summarised scores

colour

According to which variable shall the graphs be coloured? Default is "model".

facet_formula

formula for facetting in ggplot. If this is NULL (the default), no facetting will take place

facet_wrap_or_grid

Use ggplot2's facet_wrap or facet_grid? Anything other than "facet_wrap" will be interpreted as facet_grid. This only takes effect if facet_formula is not NULL

scales

scales argument that gets passed down to ggplot. Only necessary if you make use of facetting. Default is "free_y"

Value

ggplot object with a plot of interval coverage

Examples

Run this code
# NOT RUN {
example1 <- scoringutils::range_example_data_long
scores <- scoringutils::eval_forecasts(example1,
                                       summarise_by = c("model", "quantile"))
quantile_coverage(scores)
# }

Run the code above in your browser using DataLab