Description Usage Arguments Details Examples
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!
1 | country_dead(country = "England+Wales", pdf = FALSE, save = FALSE)
|
country |
Country name |
pdf |
default FALSE will not print to PDF |
save |
Do we save the data as a CSV |
The columns in the frame stmf are just 'iso_code', 'Year', 'Week', and 'Deaths'.
Draws three graphs:
Raw data with a linear regression line, over n years;
Data with secular adjustment;
Data adjusted for a 'summer baseline' using the "other n years of data" after secular adjustment.
1 | country_dead( 'New Zealand' )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.