prepare_day_zero_data: Prepare day zero data

Description Usage Arguments

View source: R/plot_day_zero.R

Description

Generate a plot with time adjusted for the day at which the outbreak is considered to have started

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
prepare_day_zero_data(
  countries = c("Italy", "Spain", "US", "Germany"),
  day0 = 150,
  cumulative = TRUE,
  time_before = 0,
  max_date = Sys.Date(),
  deaths = FALSE,
  pop = FALSE,
  pop_adjustor = 1e+06,
  by_district = FALSE,
  districts = NULL,
  roll = 0,
  roll_fun = "mean"
)

Arguments

countries

Character vector of country names

day0

An integer, the number of cumulative cases at which the outbreak is considered to have started

cumulative

Whether to count cases cumulatively

time_before

How many days before outbreak to show

max_date

The maximum date

deaths

Whether to use deaths instead of cases

pop

Adjust by population

pop_adjustor

Deaths per x (default million) when doing population adjustment

by_district

Show by district

districts

Show by districts, default FALSE

roll

How many days to get rolling values for

roll_fun

Mean or Sum


databrew/covid19 documentation built on Aug. 24, 2020, 10:39 a.m.