Skip to contents

Creates a panel plot of forecast accuracy by engine and horizon.

Usage

plot_backtest(scores)

Arguments

scores

Output of score_forecasts().

Value

A ggplot object.

Examples

# \donttest{
sim <- simulate_dynamics(n_lineages = 3,
  advantages = c("A" = 1.2, "B" = 0.8),
  n_timepoints = 20, seed = 1)
bt <- backtest(sim, engines = "mlr",
  horizons = c(7, 14), min_train = 42)
sc <- score_forecasts(bt)
plot_backtest(sc)

# }