Skip to content

Commit

Permalink
Fix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Jan 29, 2024
1 parent e52ec12 commit 315b582
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion episodes/model-choices.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,10 @@ output_samples <- Map(
output_samples <- bind_rows(output_samples) # requires the tidyverse package
ggplot(output_samples[output_samples$compartment == "infectious", ], aes(time, value)) +
ggplot(
output_samples[output_samples$compartment == "infectious", ],
aes(time, value)
) +
stat_summary(geom = "line", fun = mean) +
stat_summary(
geom = "ribbon",
Expand Down
5 changes: 4 additions & 1 deletion episodes/simulating-transmission.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,10 @@ output_samples <- bind_rows(output_samples)
3. Calculate the mean and 95% quantiles of number of infectious individuals across each model simulation and visualise output

```{r plot, fig.width = 10}
ggplot(output_samples[output_samples$compartment == "infectious", ], aes(time, value)) +
ggplot(
output_samples[output_samples$compartment == "infectious", ],
aes(time, value)
) +
stat_summary(geom = "line", fun = mean) +
stat_summary(
geom = "ribbon",
Expand Down

0 comments on commit 315b582

Please sign in to comment.