Mathematical epidemiology in a data-rich world (R)

Comments on and Rmarkdown source code of the paper Mathematical epidemiology in a data-rich world (Infectious Diseases Modelling, 2020).

Ugly loops versus pretty vectors (R)

A comparison of the execution times of loops and vector operations in R using the tictoc library.

Thucydides and epidemiology (epi)

The plague of Athens of 430 BCE as told by Thucydides in the History of the Peloponnesian War.

Lowering the alpha value in an OSM map (R,mapping)

Simple solution to change the alpha channel (that is, the opacity or transparency) in an OpenStreetMap map in R, using a function that adds an alpha value to a hexadecimal RGB colour specification.

A parLapply example (R)

A simple working example of using parLapply in R to perform a very basic sensitivity analysis (here, of a static function).

Buses or ants? (R,data,mapping)

R code for plotting the activity of bus stops during a typical day in Winnipeg, using data downloaded from Winnipeg Transit. Shows how to make movies from the results using convert (ImageMagick) and animation (R library).

Plotting a nice y-axis and cropping figures (R)

R functions to make human readable y-axis and to crop figures.

US measles cases data (epi data)

Historical data for the yearly number of cases of measles in the USA from 1944 to the current day, collated from the US CDC data.

Some SARS data (epi data)

Severe Acute Respiratory Syndrome (SARS) data for international spread collated from the WHO website maintained during the 2003 epidemic.