Learn R Programming

ViroReportR (version 1.0.4)

plot_R_fit_comparison: Compare Reproduction Number Estimates from Multiple EpiEstim Outputs

Description

[Deprecated]

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

This function creates a ggplot comparing estimated reproduction numbers (\(R\)) over time from multiple EpiEstim outputs. Each input should be a named object produced by EpiEstim containing an estimate_R$R data frame.

Usage

plot_R_fit_comparison(...)

Value

A ggplot2 object showing median \(R\) estimates with 50% and 95% credible intervals, colored by input source (i.e., name).

Arguments

...

Named EpiEstim output objects produced by generate_forecast(). Each object should contain a data frame estimate_R$R with columns such as:

  • t_start, t_end: Time window indices

  • Median(R): Median estimated reproduction number

  • Quantile.0.025(R) / Quantile.0.975(R): 95% credible interval bounds

  • Quantile.0.25(R) / Quantile.0.75(R): 50% credible interval bounds

See Also

generate_forecast(), EpiEstim::estimate_R()