Skip to contents

All the simulations should include details of major changes in the simulation input parameters, particularly for step functions. This set of events can be directly represented on a ggoutbreak plot using the events parameter

Usage

sim_events(df)

Arguments

df

the output of a ggoutbreak simulation

Value

an events dataframe

Examples

sim_events(test_poisson_rt)
#> # A tibble: 2 × 4
#> # Groups:   statistic [1]
#>   statistic  label   start      end  
#>   <chr>      <chr>   <date>     <lgl>
#> 1 infections Rt=2.50 2019-12-29 NA   
#> 2 infections Rt=0.80 2020-02-07 NA