-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcsse_covid_19_time_series_per_capita_day.Rmd
43 lines (36 loc) · 1.24 KB
/
csse_covid_19_time_series_per_capita_day.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: "Per 10k capita"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
```{r, child="childs/csse_tables_all.Rmd"}
```
```{r, child="childs/table_population.Rmd"}
```
The figures below display the number of cases per 10k residents ([2018 census](population_size.html)).
```{r per-capita}
csse_confirmed_table <- csse_confirmed_table %>%
left_join(population_table, by = c("Country/Region" = "country")) %>%
subset(SP.POP.TOTL > 0) %>%
mutate(Value = Cases / SP.POP.TOTL * 10E3) %>%
group_by(`Date`, `Country/Region`) %>%
summarise(Value = sum(Value))
csse_deaths_table <- csse_deaths_table %>%
left_join(population_table, by = c("Country/Region" = "country")) %>%
subset(SP.POP.TOTL > 0) %>%
mutate(Value = Cases / SP.POP.TOTL * 10E3) %>%
group_by(`Date`, `Country/Region`) %>%
summarise(Value = sum(Value))
csse_recovered_table <- csse_recovered_table %>%
left_join(population_table, by = c("Country/Region" = "country")) %>%
subset(SP.POP.TOTL > 0) %>%
mutate(Value = Cases / SP.POP.TOTL * 10E3) %>%
group_by(`Date`, `Country/Region`) %>%
summarise(Value = sum(Value))
```
```{r}
plot_group <- "Country/Region"
```
```{r, child="childs/plot_categories_day.Rmd"}
```