Make a dotsinterval plot of relative scores stratified by specified variables.
Source:R/plot_relative_scores.R
plot_rel_score_dists.Rd
Make a dotsinterval plot of relative scores stratified by specified variables.
Usage
plot_rel_score_dists(
scores,
target_model,
baseline_model,
metric_to_compare,
x = NULL,
by = NULL,
order_x = FALSE
)
Arguments
- scores
Output of
scoringutils::score()
.- target_model
Model for which to plot relative scores
- baseline_model
Baseline model for the relative scores computation.
- metric_to_compare
Metric for which to plot relative scores. One of
"wis"
or"crps"
. Not case-sensitive.- x
Variable for the x axis. If
NULL
, plot a single distribution.- by
additional variables defining a single score to plot. Passed along with the variable in
x
as theby
argument toforecasttools::summarise_scores_with_baseline()
. DefaultNULL
(no additional variables).- order_x
Order the groups on the x-axis by their mean value of the relative_metric (i.e. the point in the pointinterval)? Default
FALSE
.