Skip to content

Commit

Permalink
Add ebola data and figure
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed May 22, 2024
1 parent cf3e596 commit 8ec06b4
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions vignettes/ebola.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,28 @@ library(ggplot2)

# Data preparation

* Load the Ebola data, explain the columns and some of the context
* Clean it up into the right format
* Visualise the delay data. Perhaps any other relevant features -- we don't have geocoordinates right
```{r}
data("sierra_leone_ebola_data")
```

Ebola data available in package.
Has `r nrow(sierra_leone_ebola_data)` rows, each corresponding to a unique case report.

```{r}
head(sierra_leone_ebola_data)
```

```{r}
sierra_leone_ebola_data |>
dplyr::filter(id %% 10 == 0) |>
ggplot() +
geom_point(aes(x = date_of_symptom_onset, y = id), col = "#56B4E9") +

Check warning on line 56 in vignettes/ebola.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/ebola.Rmd,line=56,col=4,[indentation_linter] Indentation should be 2 spaces but is 4 spaces.
geom_point(aes(x = date_of_sample_tested, y = id), col = "#009E73") +
labs(x = "", y = "Case ID") +
theme_minimal()
```

* Clean it up into the right format -- I guess can use the paper code here

# Model fitting

Expand Down

0 comments on commit 8ec06b4

Please sign in to comment.