Generates a time series plot comparing the forecasts from two models along with observed data.
plot_forecast_compare(
forecast1,
forecast2,
data_train,
data_test,
time,
quant_high,
quant_low,
col1,
title
)
A ggplot2
object showing the forecast comparison.
Numeric matrix, forecasted values from the first model (columns: time points).
Numeric matrix, forecasted values from the second model (columns: time points).
Numeric vector, training data used for modeling.
Numeric vector, actual test data for evaluation.
Numeric vector, representing the time points corresponding to the data.
Numeric, upper quantile (e.g., 0.9) for confidence interval.
Numeric, lower quantile (e.g., 0.1) for confidence interval.
Character, color for observed data lines.
Character, title for the plot.