Plot a scatterplot of scores comparing those of one model to those of another, for a given stratification.
Source:R/plot_absolute_scores.R
plot_score_scatter.RdPlot a scatterplot of scores comparing those of one model to those of another, for a given stratification.
Usage
plot_score_scatter(
scores,
metric,
model_x,
model_y,
by = NULL,
label = NULL,
nudge_x = 0,
nudge_y = 0,
label_size = 2,
label_color = "black",
...
)Arguments
- scores
Table of unsummarized scores, as the output of [scoringutils::score().
- metric
Metric to plot.
- model_x
Model whose score should be plotted on the x axis.
- model_y
Model whose score should be plotted on the y axis.
- by
Summize scores by these columns. Passed as the
byargument toforecasttools::summarise_scores_with_baseline(). DefaultNULL.- label
Column to use for labeling points. If
NAorNULL, do not label.- nudge_x
Passed to
ggplot2::geom_text(). Default0.- nudge_y
Passed to
ggplot2::geom_text(). Default0.- label_size
Passed as the
"size"argument toggplot2::geom_text(). Default2.- label_color
Passed as the
"color"argument toggplot2::geom_text(). Default"black".- ...
Keyword arguments passed to
ggplot2::geom_point().