Plots various metrics for evaluating probabilistic forecasts by group.
plot_metrics(object, groups = NULL, type, metrics = NULL, newdata = NULL)A fitted model object returned by epim.
See epimodel-objects.
Either NULL or a character vector specifying the groups
to plot for. Default is NULL, which plots all modeled groups.
A string specifying the name of the observations to plot. This should match one
of the names of the response variables in the obs argument used int the call to epim.
A string or character vector specifying the plotted
forecast error metrics. One of NULL, "crps",
"mean_abs_error"
If provided, the original data used
in object is overridden. Useful for forecasting
A ggplot object which can be further modified.