Skip to content

Commit

Permalink
2020-03-02 SR 42
Browse files Browse the repository at this point in the history
  • Loading branch information
eebrown committed Mar 2, 2020
1 parent 11bd014 commit 1c07315
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 127 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: data2019nCoV
Title: Data on the COVID-19 Outbreak
Version: 0.41.0
Version: 0.42.0
Authors@R:
person(given = "Eric",
family = "Brown",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# data2019nCoV R Package

This is a simple R package to store data about the 2019-2020 novel coronavirus, COVID-19, outbreak. Currently, it contains the data extracted from the World Health Organization (WHO) [situation reports](https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports) up to 2020-03-01 (Situation Reports # 1-41).
This is a simple R package to store data about the 2019-2020 novel coronavirus, COVID-19, outbreak. Currently, it contains the data extracted from the World Health Organization (WHO) [situation reports](https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports) up to 2020-03-02 (Situation Reports # 1-42).

There is no guarantee as to the accuracy of the transcribed data or graphs in the vignette. Please file an issue if any errors (discrepancies with the WHO reports) are noticed.

Expand Down
85 changes: 43 additions & 42 deletions data-raw/WHO_SR.csv

Large diffs are not rendered by default.

Binary file modified data/WHO_SR.rda
Binary file not shown.
19 changes: 11 additions & 8 deletions doc/WHO_SR.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ gather(WHO_SR, key, value,
RepublicofKorea, Japan, Singapore, Australia, Malaysia, VietNam,
Philippines, Cambodia, NewZealand,

Thailand, India, Nepal, SriLanka,
Thailand, India, Nepal, SriLanka, Indonesia,

UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador, DominicanRepublic,

Italy, Germany, France, UnitedKingdom, Spain, Croatia, Austria,
Finland, Israel, RussianFederation, Sweden, Belgium, Denmark,
Estonia, Georgia, Greece, NorthMacedonia, Norway, Romania, Switzerland,
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco,
Czechia, Iceland, Armenia, Luxembourg,

Iran, Kuwait, Bahrain, UnitedArabEmirates, Iraq, Oman, Lebanon, Pakistan,
Afghanistan, Egypt, Qatar,
Expand All @@ -86,7 +87,7 @@ gather(WHO_SR, key, value,
RepublicofKorea, Japan, Singapore, Australia, Malaysia, VietNam,
Philippines, Cambodia, NewZealand,

Thailand, India, Nepal, SriLanka) %>%
Thailand, India, Nepal, SriLanka, Indonesia) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
theme(legend.position="bottom") +
Expand All @@ -101,7 +102,8 @@ gather(WHO_SR, key, value,
Italy, Germany, France, UnitedKingdom, Spain, Croatia, Austria,
Finland, Israel, RussianFederation, Sweden, Belgium, Denmark,
Estonia, Georgia, Greece, NorthMacedonia, Norway, Romania, Switzerland,
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco,
Czechia, Iceland, Armenia, Luxembourg

) %>%
ggplot(aes(x=Date, y=value, col=key)) +
Expand All @@ -114,7 +116,7 @@ gather(WHO_SR, key, value,

# Americas
gather(WHO_SR, key, value,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador, DominicanRepublic
) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
Expand Down Expand Up @@ -143,7 +145,7 @@ gather(WHO_SR, key, value,

# Outbreaks Outside of China
gather(WHO_SR, key, value,
Japan, Singapore, InternationalConveyance, RepublicofKorea, Iran, Italy) %>%
Japan, Singapore, InternationalConveyance, RepublicofKorea, Iran, Italy, Germany) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
theme(legend.position="bottom") +
Expand All @@ -168,7 +170,7 @@ gather(WHO_SR, key, value,


# Chinese Provinces
gather(WHO_SR, key, value,
gather(WHO_SR, key, value, China.Hubei,
China.Guangdong, China.Beijing, China.Shanghai, China.Chongqing,
China.Zhejiang, China.Jiangxi, China.Sichuan, China.Tianjin, China.Henan,
China.Hunan, China.Shandong, China.Yunnan, China.Taiwan, China.Taipei,
Expand All @@ -178,8 +180,9 @@ gather(WHO_SR, key, value,
China.InnerMongolia, China.Xinjiang, China.Jilin, China.Qinghai, China.Xizang) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
scale_y_log10() +
theme(legend.position="bottom") +
labs(title = "Cases by Chinese Province, excluding Hubei",
labs(title = "Cases by Chinese Province, Logarithmic Scale",
x = "Date",
y = "Confirmed Cases") +
theme(legend.title = element_blank())
Expand Down
19 changes: 11 additions & 8 deletions doc/WHO_SR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ gather(WHO_SR, key, value,
RepublicofKorea, Japan, Singapore, Australia, Malaysia, VietNam,
Philippines, Cambodia, NewZealand,
Thailand, India, Nepal, SriLanka,
Thailand, India, Nepal, SriLanka, Indonesia,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador, DominicanRepublic,
Italy, Germany, France, UnitedKingdom, Spain, Croatia, Austria,
Finland, Israel, RussianFederation, Sweden, Belgium, Denmark,
Estonia, Georgia, Greece, NorthMacedonia, Norway, Romania, Switzerland,
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco,
Czechia, Iceland, Armenia, Luxembourg,
Iran, Kuwait, Bahrain, UnitedArabEmirates, Iraq, Oman, Lebanon, Pakistan,
Afghanistan, Egypt, Qatar,
Expand All @@ -106,7 +107,7 @@ gather(WHO_SR, key, value,
RepublicofKorea, Japan, Singapore, Australia, Malaysia, VietNam,
Philippines, Cambodia, NewZealand,
Thailand, India, Nepal, SriLanka) %>%
Thailand, India, Nepal, SriLanka, Indonesia) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
theme(legend.position="bottom") +
Expand All @@ -121,7 +122,8 @@ gather(WHO_SR, key, value,
Italy, Germany, France, UnitedKingdom, Spain, Croatia, Austria,
Finland, Israel, RussianFederation, Sweden, Belgium, Denmark,
Estonia, Georgia, Greece, NorthMacedonia, Norway, Romania, Switzerland,
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco,
Czechia, Iceland, Armenia, Luxembourg
) %>%
ggplot(aes(x=Date, y=value, col=key)) +
Expand All @@ -134,7 +136,7 @@ gather(WHO_SR, key, value,
# Americas
gather(WHO_SR, key, value,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador, DominicanRepublic
) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
Expand Down Expand Up @@ -163,7 +165,7 @@ gather(WHO_SR, key, value,
# Outbreaks Outside of China
gather(WHO_SR, key, value,
Japan, Singapore, InternationalConveyance, RepublicofKorea, Iran, Italy) %>%
Japan, Singapore, InternationalConveyance, RepublicofKorea, Iran, Italy, Germany) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
theme(legend.position="bottom") +
Expand All @@ -188,7 +190,7 @@ gather(WHO_SR, key, value,
# Chinese Provinces
gather(WHO_SR, key, value,
gather(WHO_SR, key, value, China.Hubei,
China.Guangdong, China.Beijing, China.Shanghai, China.Chongqing,
China.Zhejiang, China.Jiangxi, China.Sichuan, China.Tianjin, China.Henan,
China.Hunan, China.Shandong, China.Yunnan, China.Taiwan, China.Taipei,
Expand All @@ -198,8 +200,9 @@ gather(WHO_SR, key, value,
China.InnerMongolia, China.Xinjiang, China.Jilin, China.Qinghai, China.Xizang) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
scale_y_log10() +
theme(legend.position="bottom") +
labs(title = "Cases by Chinese Province, excluding Hubei",
labs(title = "Cases by Chinese Province, Logarithmic Scale",
x = "Date",
y = "Confirmed Cases") +
theme(legend.title = element_blank())
Expand Down
118 changes: 59 additions & 59 deletions doc/WHO_SR.html

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions vignettes/WHO_SR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ gather(WHO_SR, key, value,
RepublicofKorea, Japan, Singapore, Australia, Malaysia, VietNam,
Philippines, Cambodia, NewZealand,
Thailand, India, Nepal, SriLanka,
Thailand, India, Nepal, SriLanka, Indonesia,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador, DominicanRepublic,
Italy, Germany, France, UnitedKingdom, Spain, Croatia, Austria,
Finland, Israel, RussianFederation, Sweden, Belgium, Denmark,
Estonia, Georgia, Greece, NorthMacedonia, Norway, Romania, Switzerland,
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco,
Czechia, Iceland, Armenia, Luxembourg,
Iran, Kuwait, Bahrain, UnitedArabEmirates, Iraq, Oman, Lebanon, Pakistan,
Afghanistan, Egypt, Qatar,
Expand All @@ -106,7 +107,7 @@ gather(WHO_SR, key, value,
RepublicofKorea, Japan, Singapore, Australia, Malaysia, VietNam,
Philippines, Cambodia, NewZealand,
Thailand, India, Nepal, SriLanka) %>%
Thailand, India, Nepal, SriLanka, Indonesia) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
theme(legend.position="bottom") +
Expand All @@ -121,7 +122,8 @@ gather(WHO_SR, key, value,
Italy, Germany, France, UnitedKingdom, Spain, Croatia, Austria,
Finland, Israel, RussianFederation, Sweden, Belgium, Denmark,
Estonia, Georgia, Greece, NorthMacedonia, Norway, Romania, Switzerland,
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco
Belarus, Lithuania, Netherlands, SanMarino, Azerbaijan, Ireland, Monaco,
Czechia, Iceland, Armenia, Luxembourg
) %>%
ggplot(aes(x=Date, y=value, col=key)) +
Expand All @@ -134,7 +136,7 @@ gather(WHO_SR, key, value,
# Americas
gather(WHO_SR, key, value,
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador
UnitedStatesofAmerica, Canada, Brazil, Mexico, Ecuador, DominicanRepublic
) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
Expand Down Expand Up @@ -163,7 +165,7 @@ gather(WHO_SR, key, value,
# Outbreaks Outside of China
gather(WHO_SR, key, value,
Japan, Singapore, InternationalConveyance, RepublicofKorea, Iran, Italy) %>%
Japan, Singapore, InternationalConveyance, RepublicofKorea, Iran, Italy, Germany) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
theme(legend.position="bottom") +
Expand All @@ -188,7 +190,7 @@ gather(WHO_SR, key, value,
# Chinese Provinces
gather(WHO_SR, key, value,
gather(WHO_SR, key, value, China.Hubei,
China.Guangdong, China.Beijing, China.Shanghai, China.Chongqing,
China.Zhejiang, China.Jiangxi, China.Sichuan, China.Tianjin, China.Henan,
China.Hunan, China.Shandong, China.Yunnan, China.Taiwan, China.Taipei,
Expand All @@ -198,8 +200,9 @@ gather(WHO_SR, key, value,
China.InnerMongolia, China.Xinjiang, China.Jilin, China.Qinghai, China.Xizang) %>%
ggplot(aes(x=Date, y=value, col=key)) +
geom_line() +
scale_y_log10() +
theme(legend.position="bottom") +
labs(title = "Cases by Chinese Province, excluding Hubei",
labs(title = "Cases by Chinese Province, Logarithmic Scale",
x = "Date",
y = "Confirmed Cases") +
theme(legend.title = element_blank())
Expand Down

0 comments on commit 1c07315

Please sign in to comment.