After installing SaviR, you are ready to use the following functions to read in the data and create visualizations. There are functions to create plots, maps, or tables by World Health Organization (WHO) Region, Department of State (DoS) Region, or globally.
Data: The Frankenstein Dataset
onetable
- stored metadata with iso2 and iso3 codes,
country names, WHO/DoS/World Bank regions, and UN population
estimatesget_covid_df(sources = c("all", "WHO", "WHO+JHU", "WHO+Primary"))
- COVID cases/deaths dataframe from WHO and other sources.
calc_add_risk()
- Add risk matrix calculations to dataframe
(df)get_vax()
- Get vaccination data from Our World In Data
(OWID)get_combined_table(type = c("WHO", "Both", "legacy"), geometry=FALSE)
- Combine all of the above into one large df, optionally add
geometry
This snippet produces the master df with all the variables required for all of the following graphics.
# Load in data to create visuals
df_who <- get_combined_table("WHO") # China includes Taiwan, Hong Kong, and Macau data
# Data for visuals are typically as of Sunday of the current week
# but this can be determined dynamically using WHO data.
sunday_date <- df_who |>
distinct(date, dow = weekdays(date)) |>
arrange(desc(date)) |>
filter(dow == "Sunday") |>
slice(1) |>
pull(date)
Plots
plot_epicurve(df, transparent = T)
When creating epi curves for the WHO regions, the “plot_epicurve” function should take in the df with only “WHO” observations in order to match the same curve on the WHO Coronavirus Dashboard. The individual epi curves for each region can be run simply by filtering for one WHO region in the df. The function will detect that the region column has only one region and will produce the epi curve accordingly.
When creating epi curves for the DoS regions, the plot_epicurve function should take in the df with “Both” observations. Similarly to the WHO epi curves, individual epi curves can also be produce by filtering to one DoS region.
# Epi Curves for WHO -- Global
epi_curve_global <- plot_epicurve(df_who, transparent = T)
epi_curve_global
# Epi Curves for DoS -- Global
state_epi_curve <- plot_epicurve(filter(df_who, date <= sunday_date),
type = "cases",
by_cat = "State Region")
state_epi_curve
Inset plots
- We can also pass
inset = TRUE
to plot an inset plot for the most recent weeks- By default, the inset for the case plot is slightly left and cener in the plot window
- Deaths plot inset is slightly up and to the right
- Looks at the past 9 weeks of data in the inset, or
min(date) + weeks(1)
, whichever is later
inset_epi_curve <- df_who |>
filter(date <= sunday_date) |>
plot_epicurve(type = "cases", by_cat = "State Region", transparent = FALSE, inset = TRUE)
inset_epi_curve
# Regions
for (r in unique(na.omit(df_who$who_region))) {
epi_curve_regional <- plot_epicurve(filter(df_who, who_region == r), transparent = F)
print(epi_curve_regional)
}
plot_riskmatrix(df)
Note for labeling purposes, the labels variable should be added to the dataframe specifying the top 10 countries for weekly average incidence, week case percent change, and weekly total cases. Exclusion criteria: Countries with population less than 10 million and countries with weekly cases totals less than 100.
global_risk_matrix <- df_who %>%
filter(date == sunday_date) %>%
filter(population >= 10000000) %>% # Exclude population less than 10M
filter(week_case >= 100) %>%
mutate(
rank_inc = dense_rank(desc(week_case_incidence)),
rank_per = dense_rank(desc(percent_change_case)),
rank_cas = dense_rank(desc(week_case))
) %>%
mutate(labels = case_when(
rank_inc %in% 1:10 ~ country,
rank_per %in% 1:10 ~ country,
rank_cas %in% 1:10 ~ country
)) %>%
plot_riskmatrix()
global_risk_matrix
Maps
By default, get_combined_table()
does not
return geometry. This is preferable, since the size of the table is
quite large and the geometry list column takes up a lot of space in
memory. However, if we want to map these data, we can either call
get_combined_table("Both", geometry = TRUE)
, or join with
country_coords
after filtering, like so:
# Filter to only observations with date as of Sunday
# and join in geometry
df_who_mapping <- df_who %>%
filter(date == sunday_date) %>%
left_join(select(country_coords, id, geometry), by = "id")
map_burden(df, region, time_step)
The “map_burden” function takes in a pre-filtered data.frame and
computes and displays average incidence for each country over the time
period selected.
The region
argument is optional, but it is used to specify
a specific DoS/WHO region to zoom to, if desired.time_step
is used to specify the days used to average
incidence over. This is always relative to the latest date in the
data.frame.bin_breaks
and bin_colors
can be used to
over-ride sensible defaults for incidence cutpoints and color scheme, if
desired.
burden_map_global <- df_who |>
filter(date <= sunday_date) |>
map_burden()
burden_map_global
for (r in unique(na.omit(df_who$who_region))) {
burden_map_regional <- df_who |>
filter(who_region == r, date <= sunday_date) |>
map_burden(region = r)
print(burden_map_regional)
}
and an example of how to produce a 14d map:
burden_map_global_14 <- df_who |>
filter(date <= sunday_date) |>
map_burden(time_step = 14)
burden_map_global_14
We can also over-ride the incidence cut-points, like so:
# same map with 0-1, 1-5, 5-10, 10+ breaks
burden_map_global_14_2 <- df_who |>
filter(date <= sunday_date) |>
map_burden(
time_step = 14,
bin_breaks = c(0, 1, 5, 10, Inf),
bin_colors = c("0- <1" = "#f1e5a1", "1- <5" = "#e7b351", "5- <10" = "#d26230", "10+" = "#aa001e")
)
burden_map_global_14_2
map_trend(df, region, time_step = 7)
The “map_trend” function requires a result
column where
weekly percent change is converted into factors using “cut”.
The default behavior is to visualize a global trend map, but passing
a data frame filtered to a specific region and providing the region name
as a region
argument will change the bounding box
accordingly.
A different time_step
can be provided. The default
assumes you are comparing two 7d periods, but this can be increased or
decreased accordingly.
for (r in unique(na.omit(df_who$who_region))) {
trend_map_reg <- df_who |>
filter(date <= sunday_date) |>
map_trend(region = r)
print(trend_map_reg)
}
and an example producing the same with different time_step:
map_vaccinations(df, vac_type = c("People", "Fully"))
Tables
table_10mostcases(df, time_step = 7, region = NULL, data_as_of = NULL)
This function presents a top-10 table of countries based on cases
reported in the past time_step
.
The default is a 7 day period, but this can be adjusted. Additionally,
you can tweak the title and data-as-of footnote using those variables
respectively, or they will be inferred internally.
7-day Table
df_who |>
filter(date <= sunday_date) |>
table_10mostcases(data_as_of = format(sunday_date, "%B %d, %Y"))
10 Countries/ Areas with Most New Cases | ||
Country/ Area | New Cases Past 7 Days |
% Change Past 7 Days1 |
---|---|---|
Russia | 195,197 | 25.6 |
Czechia | 38,080 | 133.8 |
Poland | 34,434 | −39.5 |
Greece | 27,651 | −14.4 |
United Kingdom | 20,230 | 17.6 |
Lithuania | 13,353 | −30.3 |
Croatia | 12,218 | −18.8 |
France | 11,005 | 51.4 |
Belgium | 8,620 | −4.1 |
Switzerland | 7,778 | 82.8 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior |
14-day Table
df_who |>
filter(date <= sunday_date) |>
table_10mostcases(time_step = 14)
10 Countries/ Areas with Most New Cases | ||
Country/ Area | New Cases Past 14 Days |
% Change Past 14 Days1 |
---|---|---|
Russia | 350,592 | 189.4 |
Poland | 91,357 | 1,003.6 |
Greece | 59,969 | 47.6 |
Czechia | 54,370 | 1,908.5 |
United Kingdom | 37,427 | −28.5 |
Italy | 33,613 | −53.1 |
Lithuania | 32,524 | 930.5 |
Croatia | 27,266 | 504.2 |
Romania | 25,152 | 92.9 |
France | 18,274 | 58.6 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 14 days to 14 days prior |
By region
for (r in unique(na.omit(df_who$who_region))) {
tab_out <- df_who |>
filter(date <= sunday_date, who_region == r) |>
table_10mostcases(region = r, data_as_of = format(Sys.Date(), "%B %d, %Y"))
print(htmltools::tagList(tab_out))
}
10 (AMRO) Countries/ Areas with Most New Cases | ||
Country/ Area |
New Cases Past 7 Days |
% Change Past 7 Days1 |
---|---|---|
Argentina | 5,187 | 175.3 |
Chile | 2,573 | 147.6 |
Colombia | 444 | −79.3 |
Mexico | 340 | −85.0 |
Uruguay | 334 | 156.9 |
Ecuador | 193 | −77.9 |
Costa Rica | 117 | −81.5 |
Haiti | 43 | −36.8 |
Jamaica | 35 | −66.3 |
Barbados | 21 | −91.0 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior |
10 (EMRO) Countries/ Areas with Most New Cases | ||
Country/ Area |
New Cases Past 7 Days |
% Change Past 7 Days1 |
---|---|---|
Afghanistan | 0 | - |
United Arab Emirates | 0 | - |
Bahrain | 0 | - |
Djibouti | 0 | - |
Egypt | 0 | - |
Iran | 0 | - |
Iraq | 0 | - |
Jordan | 0 | - |
Kuwait | 0 | - |
Lebanon | 0 | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior |
10 (AFRO) Countries/ Areas with Most New Cases | ||
Country/ Area |
New Cases Past 7 Days |
% Change Past 7 Days1 |
---|---|---|
Mauritius | 387 | −32.7 |
Ghana | 120 | 166.7 |
Tanzania | 48 | 152.6 |
South Sudan | 25 | 257.1 |
Ethiopia | 18 | −40.0 |
Burkina Faso | 16 | - |
Cameroon | 13 | −35.0 |
South Africa | 13 | −67.5 |
Zambia | 12 | −78.6 |
Cote d’Ivoire | 10 | 0.0 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior |
10 (EURO) Countries/ Areas with Most New Cases | ||
Country/ Area |
New Cases Past 7 Days |
% Change Past 7 Days1 |
---|---|---|
Russia | 195,197 | 25.6 |
Czechia | 38,080 | 133.8 |
Poland | 34,434 | −39.5 |
Greece | 27,651 | −14.4 |
United Kingdom | 20,230 | 17.6 |
Lithuania | 13,353 | −30.3 |
Croatia | 12,218 | −18.8 |
France | 11,005 | 51.4 |
Belgium | 8,620 | −4.1 |
Switzerland | 7,778 | 82.8 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior |
10 (WPRO) Countries/ Areas with Most New Cases | ||
Country/ Area |
New Cases Past 7 Days |
% Change Past 7 Days1 |
---|---|---|
New Zealand | 6,674 | −23.2 |
Malaysia | 5,964 | 22.0 |
China | 826 | −88.4 |
Brunei Darussalam | 706 | −30.4 |
Northern Mariana Islands | 3 | −95.7 |
French Polynesia | 3 | −95.1 |
Cook Islands | 1 | −96.6 |
Cambodia | 1 | −80.0 |
American Samoa | 0 | - |
Australia | 0 | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior |
10 (SEARO) Countries/ Areas with Most New Cases | ||
Country/ Area |
New Cases Past 7 Days |
% Change Past 7 Days1 |
---|---|---|
Thailand | 2,935 | 11.4 |
India | 931 | −44.2 |
Indonesia | 213 | 20.3 |
Burma | 98 | −60.5 |
Bangladesh | 69 | 0.0 |
Sri Lanka | 7 | 75.0 |
Bhutan | 0 | - |
Maldives | 0 | - |
Nepal | 0 | - |
Korea (North) | 0 | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior |
table_10incidence(df, time_step = 7, region = NULL, data_as_of = NULL)
Similar to the above, but computes top-10 countries baseed on
incidence over past time_step
.
7-day table
df_who |>
filter(date <= sunday_date) |>
table_10incidence(data_as_of = format(sunday_date, "%B %d, %Y"))
10 Countries/ Areas with Highest Incidence | ||
Country/ Area | Incidence Per 100,0001 |
% Change Past 7 Days2 |
---|---|---|
Lithuania | 69.4 | −30.3 |
Czechia | 51.8 | 133.8 |
Croatia | 43.3 | −18.8 |
Greece | 38.0 | −14.4 |
Luxembourg | 33.8 | 34.3 |
Brunei Darussalam | 22.5 | −30.4 |
Cyprus | 19.4 | −56.9 |
Russia | 19.3 | 25.6 |
New Zealand | 18.4 | −23.2 |
Norway | 16.8 | −9.8 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Average daily incidence per 100,000 in past 7 days | ||
2 Percent change in cases of most recent 7 days to 7 days prior |
14-day table
df_who |>
filter(date <= sunday_date) |>
table_10incidence(time_step = 14)
10 Countries/ Areas with Highest Incidence | ||
Country/ Area | Incidence Per 100,0001 |
% Change Past 14 Days2 |
---|---|---|
Lithuania | 84.5 | 930.5 |
Croatia | 48.3 | 504.2 |
Greece | 41.2 | 47.6 |
Czechia | 37.0 | 1,908.5 |
Cyprus | 32.2 | −51.9 |
Luxembourg | 29.5 | 21.4 |
Moldova | 28.8 | 591.9 |
Brunei Darussalam | 27.4 | −54.6 |
New Zealand | 21.2 | −71.5 |
Niue | 18.5 | −75.0 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Average daily incidence per 100,000 in past 14 days | ||
2 Percent change in cases of most recent 14 days to 14 days prior |
By Region
for (r in unique(na.omit(df_who$who_region))) {
tab_out <- df_who %>%
filter(date <= sunday_date, who_region == r) |>
table_10incidence(region = r, data_as_of = format(Sys.Date(), "%B %d, %Y"))
print(htmltools::tagList(tab_out))
}
10 (AMRO) Countries/ Areas with Highest Incidence | ||
Country/ Area |
Incidence Per 100,0001 |
% Change Past 7 Days2 |
---|---|---|
Turks and Caicos Islands | 6.6 | - |
Chile | 1.9 | 147.6 |
Argentina | 1.6 | 175.3 |
Uruguay | 1.4 | 156.9 |
Barbados | 1.1 | −91.0 |
Belize | 0.5 | 1,300.0 |
Costa Rica | 0.3 | −81.5 |
Jamaica | 0.2 | −66.3 |
Ecuador | 0.2 | −77.9 |
Colombia | 0.1 | −79.3 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Average daily incidence per 100,000 in past 7 days | ||
2 Percent change in cases of most recent 7 days to 7 days prior |
10 (EMRO) Countries/ Areas with Highest Incidence | ||
Country/ Area |
Incidence Per 100,0001 |
% Change Past 7 Days2 |
---|---|---|
Afghanistan | 0.0 | - |
United Arab Emirates | 0.0 | - |
Bahrain | 0.0 | - |
Djibouti | 0.0 | - |
Egypt | 0.0 | - |
Iran | 0.0 | - |
Iraq | 0.0 | - |
Jordan | 0.0 | - |
Kuwait | 0.0 | - |
Lebanon | 0.0 | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Average daily incidence per 100,000 in past 7 days | ||
2 Percent change in cases of most recent 7 days to 7 days prior |
10 (AFRO) Countries/ Areas with Highest Incidence | ||
Country/ Area |
Incidence Per 100,0001 |
% Change Past 7 Days2 |
---|---|---|
Mauritius | 4.3 | −32.7 |
Seychelles | 0.1 | - |
Ghana | 0.1 | 166.7 |
South Sudan | 0.0 | 257.1 |
Tanzania | 0.0 | 152.6 |
Burkina Faso | 0.0 | - |
Zambia | 0.0 | −78.6 |
Guinea | 0.0 | 133.3 |
Cameroon | 0.0 | −35.0 |
Togo | 0.0 | 300.0 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Average daily incidence per 100,000 in past 7 days | ||
2 Percent change in cases of most recent 7 days to 7 days prior |
10 (EURO) Countries/ Areas with Highest Incidence | ||
Country/ Area |
Incidence Per 100,0001 |
% Change Past 7 Days2 |
---|---|---|
Lithuania | 69.4 | −30.3 |
Czechia | 51.8 | 133.8 |
Croatia | 43.3 | −18.8 |
Greece | 38.0 | −14.4 |
Luxembourg | 33.8 | 34.3 |
Cyprus | 19.4 | −56.9 |
Russia | 19.3 | 25.6 |
Norway | 16.8 | −9.8 |
Switzerland | 12.7 | 82.8 |
Poland | 12.3 | −39.5 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Average daily incidence per 100,000 in past 7 days | ||
2 Percent change in cases of most recent 7 days to 7 days prior |
10 (WPRO) Countries/ Areas with Highest Incidence | ||
Country/ Area |
Incidence Per 100,0001 |
% Change Past 7 Days2 |
---|---|---|
Brunei Darussalam | 22.5 | −30.4 |
New Zealand | 18.4 | −23.2 |
Malaysia | 2.5 | 22.0 |
Northern Mariana Islands | 0.9 | −95.7 |
Cook Islands | 0.8 | −96.6 |
French Polynesia | 0.1 | −95.1 |
China | 0.0 | −88.4 |
Cambodia | 0.0 | −80.0 |
American Samoa | 0.0 | - |
Australia | 0.0 | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Average daily incidence per 100,000 in past 7 days | ||
2 Percent change in cases of most recent 7 days to 7 days prior |
10 (SEARO) Countries/ Areas with Highest Incidence | ||
Country/ Area |
Incidence Per 100,0001 |
% Change Past 7 Days2 |
---|---|---|
Thailand | 0.6 | 11.4 |
Burma | 0.0 | −60.5 |
Indonesia | 0.0 | 20.3 |
India | 0.0 | −44.2 |
Bangladesh | 0.0 | 0.0 |
Sri Lanka | 0.0 | 75.0 |
Bhutan | 0.0 | - |
Maldives | 0.0 | - |
Nepal | 0.0 | - |
Korea (North) | 0.0 | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 29, 2024 | ||
1 Average daily incidence per 100,000 in past 7 days | ||
2 Percent change in cases of most recent 7 days to 7 days prior |
table_10percentchange(df, time_step = 7, second_time_step = 28, region = NULL, data_as_of = NULL)
Works similarly to the above, but selects top 10 countries based on
percent change over time_step
.
There’s an additional argument second_time_step
that
specifies a second (normally longer) period to compute a percent change
over.
The default visualization is using weekly change and 4 week change.
This table is usually filtered to only countries over a certain
population size, but this should be handled
externally.
Global table (7d and 28d pct change)
df_who %>%
filter(date <= sunday_date, population >= 10000000) |>
table_10percentchange(data_as_of = format(sunday_date, "%B %d, %Y"))
10 Countries/ Areas with Highest Percent Change In Past 7 Days |
||
Country/ Area | % Change Past 7 Days1 |
% Change Past 28 Days2 |
---|---|---|
Mali | 350.0 | 116.7 |
South Sudan | 257.1 | −88.9 |
Argentina | 175.3 | −84.4 |
Ghana | 166.7 | −19.3 |
Tanzania | 152.6 | −37.6 |
Chile | 147.6 | −95.1 |
Czechia | 133.8 | −43.8 |
Guinea | 133.3 | 66.7 |
Sri Lanka | 75.0 | −65.8 |
France | 51.4 | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
Global table (14d and 28d pct change)
df_who %>%
filter(date <= sunday_date, population >= 10000000) |>
table_10percentchange(time_step = 14)
10 Countries/ Areas with Highest Percent Change In Past 14 Days |
||
Country/ Area | % Change Past 14 Days1 |
% Change Past 28 Days2 |
---|---|---|
Czechia | 1,908.5 | −43.8 |
Tanzania | 1,016.7 | −37.6 |
Poland | 1,003.6 | −26.7 |
Ukraine | 981.5 | −10.0 |
Mali | 450.0 | 116.7 |
Argentina | 366.1 | −84.4 |
Niger | 233.3 | - |
Sweden | 230.3 | −55.4 |
Türkiye | 200.0 | −56.8 |
Russia | 189.4 | −56.5 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 14 days to 14 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
Regional Tables
for (r in unique(na.omit(df_who$who_region))) {
tab_out <- df_who %>%
filter(date <= sunday_date, population >= 100000, who_region == r) |> # Exclude population less than 100,000
table_10percentchange(region = r, data_as_of = format(sunday_date, "%B %d, %Y"))
print(htmltools::tagList(tab_out))
}
10 (AMRO) Countries/ Areas with Highest Percent Change In Past 7 Days |
||
Country/ Area |
% Change Past 7 Days1 |
% Change Past 28 Days2 |
---|---|---|
Belize | 1,300.0 | −19.2 |
Argentina | 175.3 | −84.4 |
Uruguay | 156.9 | −80.8 |
Chile | 147.6 | −95.1 |
Haiti | −36.8 | 20.5 |
El Salvador | −64.0 | 185.3 |
Jamaica | −66.3 | 94.3 |
Ecuador | −77.9 | −79.7 |
Colombia | −79.3 | −51.5 |
Costa Rica | −81.5 | 22.7 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
10 (EMRO) Countries/ Areas with Highest Percent Change In Past 7 Days |
||
Country/ Area |
% Change Past 7 Days1 |
% Change Past 28 Days2 |
---|---|---|
Afghanistan | - | −91.7 |
United Arab Emirates | - | - |
Bahrain | - | - |
Djibouti | - | - |
Egypt | - | - |
Iran | - | - |
Iraq | - | - |
Jordan | - | - |
Kuwait | - | - |
Lebanon | - | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
10 (AFRO) Countries/ Areas with Highest Percent Change In Past 7 Days |
||
Country/ Area |
% Change Past 7 Days1 |
% Change Past 28 Days2 |
---|---|---|
Mali | 350.0 | 116.7 |
Togo | 300.0 | 0.0 |
South Sudan | 257.1 | −88.9 |
Ghana | 166.7 | −19.3 |
Tanzania | 152.6 | −37.6 |
Guinea | 133.3 | 66.7 |
Cote d’Ivoire | 0.0 | −59.7 |
Liberia | 0.0 | - |
Mauritius | −32.7 | −90.7 |
Cameroon | −35.0 | 37.0 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
10 (EURO) Countries/ Areas with Highest Percent Change In Past 7 Days |
||
Country/ Area |
% Change Past 7 Days1 |
% Change Past 28 Days2 |
---|---|---|
Slovakia | 148.6 | −31.7 |
Czechia | 133.8 | −43.8 |
Austria | 133.3 | −47.2 |
Switzerland | 82.8 | −56.8 |
Hungary | 75.2 | −72.0 |
France | 51.4 | - |
Luxembourg | 34.3 | −16.7 |
Russia | 25.6 | −56.5 |
Netherlands | 21.9 | −39.3 |
United Kingdom | 17.6 | −35.3 |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
10 (WPRO) Countries/ Areas with Highest Percent Change In Past 7 Days |
||
Country/ Area |
% Change Past 7 Days1 |
% Change Past 28 Days2 |
---|---|---|
Malaysia | 22.0 | −73.9 |
New Zealand | −23.2 | −64.4 |
Brunei Darussalam | −30.4 | −82.8 |
Cambodia | −80.0 | 23.3 |
China | −88.4 | −23.6 |
French Polynesia | −95.1 | −77.4 |
Australia | - | −91.2 |
Fiji | - | - |
Micronesia | - | - |
Guam | - | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
10 (SEARO) Countries/ Areas with Highest Percent Change In Past 7 Days |
||
Country/ Area |
% Change Past 7 Days1 |
% Change Past 28 Days2 |
---|---|---|
Sri Lanka | 75.0 | −65.8 |
Indonesia | 20.3 | −94.7 |
Thailand | 11.4 | 83.7 |
Bangladesh | 0.0 | −63.3 |
India | −44.2 | −80.2 |
Burma | −60.5 | 48.3 |
Bhutan | - | - |
Maldives | - | - |
Nepal | - | - |
Korea (North) | - | - |
Data Source: WHO Coronavirus Disease (COVID-19) Dashboard | ||
Data as of November 10, 2024 | ||
1 Percent change in cases of most recent 7 days to 7 days prior | ||
2 Percent change in cases of most recent 28 days to 28 days prior |
table_10vaccinations(df, type = c("Global", "Region"), run_date)
The “table_10vaccinations” function takes looks for a country, value1 (people vaccinated per hundred), and a value2 (daily vaccinations per hundred) column. Note as vaccination reporting has gaps, the df must be sliced by country and the most recent date with people_vaccinated_per_hundred value (if there is one).
df_who %>%
filter(date <= sunday_date) %>%
filter(population > 1000000) %>%
group_by(country) %>%
filter(!is.na(people_vaccinated_per_hundred)) %>%
filter(date == max(date)) %>%
ungroup() %>%
select(country = who_country, value1 = people_vaccinated_per_hundred, value2 = daily_vaccinations_per_hundred) %>%
arrange(desc(value1)) %>%
head(10) %>%
table_10vaccinations(., run_date = format(sunday_date, "%B %d, %Y"))
Top 10 Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area | People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
United Arab Emirates | 105.8 | NA |
Qatar | 105.8 | NA |
Cuba | 96.3 | NA |
Portugal | 95.3 | NA |
Chile | 92.3 | NA |
Nicaragua | 92.2 | NA |
Viet Nam | 91.9 | NA |
China | 91.9 | NA |
Singapore | 91.5 | NA |
Cambodia | 91.3 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 1 million were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
for (r in unique(na.omit(df_who$who_region))) {
tab_out <- df_who %>%
filter(date <= sunday_date) %>%
filter(population > 100000) %>% # Exclude population less than 100,000
filter(who_region == r) %>%
group_by(country) %>%
filter(!is.na(people_vaccinated_per_hundred)) %>%
arrange(date) %>%
top_n(1, date) %>%
distinct(id, .keep_all = T) %>%
select(country = who_country, value1 = people_vaccinated_per_hundred, value2 = daily_vaccinations_per_hundred) %>%
arrange(desc(value1)) %>%
head(10) %>%
table_10vaccinations(., type = r, run_date = format(sunday_date, "%B %d, %Y"))
print(htmltools::tagList(tab_out))
}
10 (AMRO) Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area |
People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
Cuba | 96.3 | NA |
Chile | 92.3 | NA |
Nicaragua | 92.2 | NA |
Argentina | 91.2 | NA |
Canada | 90.3 | NA |
Peru | 89.8 | NA |
Costa Rica | 89.6 | NA |
Brazil | 88.1 | NA |
Uruguay | 88.0 | NA |
Ecuador | 85.2 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 100,000 were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
10 (EMRO) Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area |
People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
United Arab Emirates | 105.8 | NA |
Qatar | 105.8 | NA |
Bahrain | 84.3 | NA |
Kuwait | 81.0 | NA |
Iran | 73.6 | NA |
Saudi Arabia | 71.3 | NA |
Oman | 71.1 | NA |
Pakistan | 70.2 | NA |
Morocco | 66.8 | NA |
Tunisia | 58.4 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 100,000 were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
10 (AFRO) Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area |
People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
Mauritius | 86.5 | NA |
Seychelles | 82.6 | NA |
Rwanda | 79.0 | NA |
Botswana | 74.2 | NA |
Liberia | 73.6 | NA |
Mozambique | 69.4 | NA |
Sierra Leone | 66.0 | NA |
Guinea | 62.9 | NA |
Sao Tome and Principe | 61.7 | NA |
Cabo Verde | 60.1 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 100,000 were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
10 (EURO) Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area |
People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
Portugal | 95.3 | NA |
Malta | 89.8 | NA |
Spain | 86.9 | NA |
Italy | 86.3 | NA |
Iceland | 83.0 | NA |
Ireland | 81.9 | NA |
Finland | 81.7 | NA |
Denmark | 80.7 | NA |
France | 80.6 | NA |
Norway | 80.0 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 100,000 were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
10 (WPRO) Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area |
People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
Brunei Darussalam | 100.5 | NA |
Viet Nam | 91.9 | NA |
China | 91.9 | NA |
Singapore | 91.5 | NA |
Cambodia | 91.3 | NA |
Korea (South) | 86.4 | NA |
Samoa | 86.1 | NA |
Australia | 84.9 | NA |
Japan | 84.5 | NA |
New Zealand | 83.0 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 100,000 were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
10 (SEARO) Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area |
People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
Nepal | 91.3 | NA |
Bhutan | 89.3 | NA |
Bangladesh | 88.5 | NA |
Thailand | 79.5 | NA |
Sri Lanka | 78.5 | NA |
Maldives | 76.2 | NA |
Burma | 74.5 | NA |
Indonesia | 74.0 | NA |
India | 72.5 | NA |
Timor-Leste | 66.1 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 100,000 were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
table_10vaccinations(df, vac_type = c("Partial", "Fully"), type = "Global", run_date = "Enter a date")
df_who %>%
filter(date <= sunday_date) %>%
filter(population > 1000000) %>%
group_by(country) %>%
filter(!is.na(people_fully_vaccinated_per_hundred)) %>%
filter(date == max(date)) %>%
ungroup() %>%
select(country = who_country, value1 = people_fully_vaccinated_per_hundred, value2 = daily_vaccinations_per_hundred) %>%
arrange(desc(value1)) %>%
head(10) %>%
table_10vaccinations(., run_date = format(sunday_date, "%B %d, %Y"))
Top 10 Countries/ Areas with Highest Vaccination per 100 People1,2 |
||
Country/ Area | People Vaccinated per 100 People3 |
Daily Vaccines Administered per 100 People4 |
---|---|---|
Qatar | 105.8 | NA |
United Arab Emirates | 103.7 | NA |
Singapore | 90.8 | NA |
Chile | 90.3 | NA |
Cuba | 89.7 | NA |
China | 89.5 | NA |
Nicaragua | 88.0 | NA |
Cambodia | 87.6 | NA |
Viet Nam | 87.5 | NA |
Portugal | 86.8 | NA |
Data as of November 10, 2024 | ||
1 Countries with population size less than or equal to 1 million were excluded | ||
2 People vaccinated per 100 people represents total population (all ages) | ||
3 Number of people out of 100 who received at least one vaccine dose; does not represent percent of population that completed primary vaccination series | ||
4 Vaccine doses administered per day (7 day rolling average); does not represent number of people vaccinated |
table_countriesofconcern(df, df_vaccinations_manufacturers, country_list)
c_list <- c("United Kingdom","Denmark","Portugal","South Africa","Kenya","Zambia","United States of America")
c_list_iso <- parse_country(c_list, to = "iso3c")
df_who_latest <- df_who %>%
group_by(id) %>%
filter(date == max(date)) %>%
ungroup()
vax_man <- get_vax_manufacturers()
table_countriesofconcern(df_who_latest, vax_man, c_list_iso)
Country |
Denmark |
United Kingdom |
Kenya |
Portugal |
United States of America |
South Africa |
Zambia |
---|---|---|---|---|---|---|---|
Date |
2024-11-10 |
2024-11-10 |
2024-11-10 |
2024-11-10 |
2024-11-10 |
2024-11-10 |
2024-11-10 |
New Cases 7 Day Average |
379.4 |
2,890 |
0 |
247.1 |
0 |
1.9 |
1.7 |
7 Day Cases |
2,656 |
20,230 |
0 |
1,730 |
0 |
13 |
12 |
Previous 7 Day Cases |
2,915 |
17,197 |
3 |
3,921 |
0 |
40 |
56 |
% Change in Cases from Previous 7 Days |
-9% |
18% |
-100% |
-56% |
-68% |
-79% |
|
New Deaths 7 Day Average |
6.1 |
0 |
0 |
11 |
713 |
0 |
0 |
7 Day Deaths |
43 |
0 |
0 |
77 |
4,991 |
0 |
0 |
Previous 7 Day Deaths |
105 |
0 |
0 |
168 |
8,211 |
0 |
1 |
% Change in Deaths from Previous 7 Days |
-59% |
-54.2% |
-39.2% |
-100% |
|||
Most Recent Date for Vaccinations |
2023-09-29 |
2022-09-11 |
2023-04-02 |
2023-09-29 |
2023-05-09 |
2023-09-24 |
2023-06-25 |
People Vaccinated Per 100 People |
80.69 |
79.71 |
26.83 |
95.34 |
81.39 |
40.42 |
58.51 |
People who completed primary |
80.11 |
75.19 |
20.53 |
86.75 |
69.47 |
35.13 |
46.03 |
Total Vaccinations Per 100 People |
254.24 |
224.04 |
43.96 |
275.03 |
203.81 |
69.79 |
67.21 |
Vaccines in Use |
Johnson&Johnson, Moderna, Oxford/AstraZeneca, Pfizer/BioNTech |
Moderna, Oxford/AstraZeneca, Pfizer/BioNTech |
Johnson&Johnson, Moderna, Oxford/AstraZeneca, Pfizer/BioNTech, Sinopharm/Beijing |
Covaxin, Johnson&Johnson, Moderna, Novavax, Oxford/AstraZeneca, Pfizer/BioNTech, Sanofi/GSK, Sinopharm/Beijing, Sinovac |
Johnson&Johnson, Moderna, Novavax, Pfizer/BioNTech |
Johnson&Johnson, Pfizer/BioNTech |
Johnson&Johnson, Oxford/AstraZeneca, Sinopharm/Beijing |
% Delta since January 1, 2022 |
Fill manually |
Fill manually |
Fill manually |
Fill manually |
Fill manually |
Fill manually |
Fill manually |
% Omicron since January 1, 2022 |
Fill manually |
Fill manually |
Fill manually |
Fill manually |
Fill manually |
Fill manually |
Fill manually |