Skip to content

Commit d5be597

Browse files
authored
add rationale of using by_group
1 parent 26e7de4 commit d5be597

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

episodes/modelling-interventions.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ At `epidemics::new_infections()` specify `compartments_from_susceptible = "vacci
445445
::::::::::::::::::::: spoiler
446446

447447
Notice that if we use `by_group = FALSE` in `epidemics::new_infections()`, we get a summary of the new infections in all demographic groups.
448-
Try keeping the default `by_group = TRUE` and adding `linetype = demography_group` when declaring variables in `ggplot(aes(...))`.
448+
To get an age-stratified plot, keep the default `by_group = TRUE` and then add `linetype = demography_group` when declaring variables in `ggplot(aes(...))`.
449449

450450
```{r}
451451
infections_baseline <- epidemics::new_infections(

0 commit comments

Comments
 (0)