Skip to contents

This function generates a forest plot for the effective reproduction number (Rt) using the provided data frame.

Usage

forest_plot_rt(df, ulim = 10, reorder_studies = TRUE, ...)

Arguments

df

The data frame containing the necessary data for generating the forest plot.

ulim

The upper limit for the x-axis of the plot. Default is 10.

reorder_studies

Logical. If TRUE, the studies will be reordered using the reorder_studies function. Default is TRUE.

...

Additional arguments to be passed to the forest_plot function.

Value

A ggplot2 object representing the forest plot for effective reproduction number (Rt).

Examples

df <- load_epidata("ebola")[["params"]]
#> Warning: One or more parsing issues, call `problems()` on your data frame for details,
#> e.g.:
#>   dat <- vroom(...)
#>   problems(dat)
#> Warning: No data found for  ebola
#> Warning: One or more parsing issues, call `problems()` on your data frame for details,
#> e.g.:
#>   dat <- vroom(...)
#>   problems(dat)
#> Warning: No outbreaks information found for  ebola
#> Data loaded for ebola
forest_plot_rt(df)
#> Warning: Removed 24 rows containing missing values or values outside the scale range
#> (`geom_point()`).