Learn R Programming

ViroReportR (version 1.0.4)

plot_forecast_comparison: Compare Forecast Outputs

Description

[Deprecated]

This function is deprecated and may be removed in a future release.

This function visualizes and compares multiple forecast outputs generated by generate_forecast(). It plots median predicted incidences with 80% and 90% predictive intervals.

Usage

plot_forecast_comparison(...)

Value

A ggplot2 object showing forecasted median incidences over time with shaded prediction intervals, colored by input source (i.e., model name).

Arguments

...

Named forecast result objects produced by generate_forecast(). Each object should contain a data frame forecast_res_quantiles with columns:

  • date: Forecast date

  • p10, p50, p90: 10th, median, and 90th quantile predictions

  • (Optional) other quantiles if available

See Also

generate_forecast(), ggplot2::ggplot()