country_dead {corona}R Documentation

Plot country deaths by week, with various adjustments:

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

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

country_dead( 'New Zealand' ) 

[Package corona version 0.3.0 Index]