country_dead: Plot country deaths by week, with various adjustments:

Description Usage Arguments Details Examples

Description

Assumes the existence of the data frame stmf containing relevant iso_codes for countries. The unusual codes GBRTENW and GBR_SCO represent England+Wales and Scotland. You can obtain a list of countries by country_dead('?'), forcing a diagnostic error!

Usage

1
country_dead(country = "England+Wales", pdf = FALSE, save = FALSE)

Arguments

country

Country name

pdf

default FALSE will not print to PDF

save

Do we save the data as a CSV

Details

The columns in the frame stmf are just 'iso_code', 'Year', 'Week', and 'Deaths'.

Draws three graphs:

  1. Raw data with a linear regression line, over n years;

  2. Data with secular adjustment;

  3. Data adjusted for a 'summer baseline' using the "other n years of data" after secular adjustment.

Examples

1
country_dead( 'New Zealand' ) 

corona documentation built on Oct. 23, 2020, 7:15 p.m.