diff --git a/inst/rmarkdown/templates/transmissibility/skeleton/rmdchunks/EpiEstim.Rmd b/inst/rmarkdown/templates/transmissibility/skeleton/rmdchunks/EpiEstim.Rmd index 65551c2..b00f64b 100644 --- a/inst/rmarkdown/templates/transmissibility/skeleton/rmdchunks/EpiEstim.Rmd +++ b/inst/rmarkdown/templates/transmissibility/skeleton/rmdchunks/EpiEstim.Rmd @@ -124,8 +124,8 @@ res_epiestim_group <- dat_i_day %>% mutate( res_epiestim = map(data, ~ wrap_res( estimate_R(.x$count, config = ee_config), - dat_i_day) - ) + dat_i_day + )) ) %>% unnest(res_epiestim) %>% dplyr::select(-data) @@ -151,18 +151,18 @@ ggplot(res_epiestim_group, aes(x = end)) + res_epiestim_group %>% filter(end == max(end)) %>% ggplot(aes(y = .data[[group_var]]), fill = custom_grey) + - geom_point(aes(x = median), color = dark_green) + - geom_errorbar(aes(xmin = lower, xmax = upper), color = dark_green) + - geom_vline(xintercept = 1, color = dark_pink) + - labs( - title = "Latest estimates of Rt", - subtitle = sprintf( - "As of %s", - format(max(get_dates(dat_i_day)), "%d %B %Y") - ), - y = "", - x = "Instantaneous Reproduction Number (Rt)" - ) + geom_point(aes(x = median), color = dark_green) + + geom_errorbar(aes(xmin = lower, xmax = upper), color = dark_green) + + geom_vline(xintercept = 1, color = dark_pink) + + labs( + title = "Latest estimates of Rt", + subtitle = sprintf( + "As of %s", + format(max(get_dates(dat_i_day)), "%d %B %Y") + ), + y = "", + x = "Instantaneous Reproduction Number (Rt)" + ) ``` ```{r rt-table-group}