Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions DataOverTime/Streamgraph.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ chick_new_2 <- chick_new_1[c(1:12,144:155,73:95,156:167),]
covid_all <- readr::read_csv(
"https://bizard-1301043367.cos.ap-guangzhou.myqcloud.com/covid_all.csv")
head(covid_all)
covid_month <- readr::read_csv(
"https://bizard-1301043367.cos.ap-guangzhou.myqcloud.com/covid_month.csv")
covid_month <- covid_all %>%
dplyr::mutate(month = as.integer(format(as.Date(time), "%m"))) %>%
dplyr::group_by(location, month) %>%
dplyr::summarise(count = sum(count), .groups = "drop")
head(covid_month)
```

Expand Down Expand Up @@ -311,4 +313,3 @@ This streamgraph shows the temporal variation of the influenza lineage cycle. \[

\[6\] David Sjoberg (2021). ggstream: Create Streamplots in 'ggplot2'. R package version 0.1.0. https://CRAN.R-project.org/package=ggstream


7 changes: 4 additions & 3 deletions DataOverTime/Streamgraph.zh.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ chick_new_2 <- chick_new_1[c(1:12,144:155,73:95,156:167),]
covid_all <- readr::read_csv(
"https://bizard-1301043367.cos.ap-guangzhou.myqcloud.com/covid_all.csv")
head(covid_all)
covid_month <- readr::read_csv(
"https://bizard-1301043367.cos.ap-guangzhou.myqcloud.com/covid_month.csv")
covid_month <- covid_all %>%
dplyr::mutate(month = as.integer(format(as.Date(time), "%m"))) %>%
dplyr::group_by(location, month) %>%
dplyr::summarise(count = sum(count), .groups = "drop")
head(covid_month)
```

Expand Down Expand Up @@ -308,4 +310,3 @@ chick_new_2 %>%

\[6\] David Sjoberg (2021). ggstream: Create Streamplots in 'ggplot2'. R package version 0.1.0. https://CRAN.R-project.org/package=ggstream