Skip to contents

Cross-sectional map: Average daily incidence for the past 7 days for each country.

Usage

map_trend(df, region = NULL, time_step = 7)

Arguments

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

Value

Produces a map of trend (% change in the past time_step days)

Details

percent change is always computed relative to the latest date in the data.frame passed, so pre-filter as needed.