
Last chance! 50% off unlimited learning
Sale ends in
Plot interval coverage
interval_coverage(
summarised_scores,
colour = "model",
facet_formula = NULL,
facet_wrap_or_grid = "facet_wrap",
scales = "free_y"
)
Summarised scores as produced by
eval_forecasts
. Make sure that "range" is included in
summarise_by
when producing the summarised scores
According to which variable shall the graphs be coloured? Default is "model".
formula for facetting in ggplot. If this is NULL
(the default), no facetting will take place
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 argument that gets passed down to ggplot. Only necessary if you make use of facetting. Default is "free_y"
ggplot object with a plot of interval coverage
# NOT RUN {
example1 <- scoringutils::range_example_data_long
scores <- scoringutils::eval_forecasts(example1,
summarise_by = c("model", "range"))
interval_coverage(scores)
# }
Run the code above in your browser using DataLab