Description Usage Arguments See Also Examples
Weekly plot using ECDC/EUROSTAT data.
1 2 3 4 5 6 7 8 9 10 11 | c19_eu_weekly(
indicator,
continents = c("Asia", "Africa", "Europe", "Oceania", "America"),
highlight = "BG",
top_n = 20,
first_wk = 10,
lower_y = NA,
label_fun = round,
axis_labels = scales::label_number(),
eu_data = c19_eu_data()
)
|
indicator |
one of: "r14_cases", "r14_deaths", "em_1m", hosp_1m", "positivity", "tests_100k" |
continents |
continents to include (only some stats available outside Europe/EU+) |
highlight |
country to highlight (EU 2-ltr code, e.g. "EL" for Greece) |
top_n |
number of lines to label |
first_wk |
first week in 2020 to plot |
lower_y |
indicator axis limit (default NA = show all data) |
label_fun |
function to apply to line labels (default is to round) |
axis_labels |
axis labels, e.g. scales::label_number(), scales::label_percent() |
eu_data |
eu data |
Other plot funcs:
c19_deaths_age()
,
c19_deaths_factor()
,
c19_deaths_map()
,
c19_deaths_total()
,
c19_heat()
,
c19_oblasts()
,
c19_r_plot()
,
c19_var_plot()
1 2 3 4 5 6 7 8 | ## Not run:
c19_eu_weekly(indicator = "r14_cases", lower_y = 0)
c19_eu_weekly(indicator = "positivity",
top_n = 100,
label_fun = function(x) sprintf("%.1f%%", 100 * x),
axis_labels = scales::label_percent())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.