map_trend | R Documentation |
Cross-sectional map: Average daily incidence for the past 7 days for each country.
map_trend(df, region = NULL, time_step = 7)
df |
A data.frame with at least the following columns: id, date, new_cases |
region |
(optional) a character string specifying a DoS or WHO region to zoom to, or NULL if none |
time_step |
(default: 7) time step in days the percent-change represents |
percent change is always computed relative to the latest date in the data.frame passed, so pre-filter as needed.
Produces a map of trend (% change in the past time_step
days)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.