plot_ranges | R Documentation |
Visualise the metrics by range, e.g. if you are interested how different interval ranges contribute to the overall interval score, or how sharpness / dispersion changes by range.
plot_ranges(scores, y = "interval_score", x = "model", colour = "range")
scores |
A data.frame of scores based on quantile forecasts as
produced by |
y |
The variable from the scores you want to show on the y-Axis. This could be something like "interval_score" (the default) or "dispersion" |
x |
The variable from the scores you want to show on the x-Axis. Usually this will be "model" |
colour |
Character vector of length one used to determine a variable for colouring dots. The Default is "range". |
A ggplot2 object showing a contributions from the three components of the weighted interval score
library(ggplot2)
scores <- score(example_quantile)
scores <- summarise_scores(scores, by = c("model", "target_type", "range"))
plot_ranges(scores, x = "model") +
facet_wrap(~target_type, scales = "free")
# visualise dispersion instead of interval score
plot_ranges(scores, y = "dispersion", x = "model") +
facet_wrap(~target_type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.