Opioid deaths by race in the United States — 2000-2015
Issues should be submitted via Github or email.
Our code requires the following
R packages to reproduce paper and presentation plots:
And for the exploratory plots:
You can install these packages using the
./code/0_install_packages.R script, but it does not run automatically in order to avoid forcing updates on the user.
Note that presentation versions of the plots require the font "Arial Narrow" to be installed, and may not render as
device is set to
To reproduce paper or presentation plots (including downloading the raw multiple cause of death data, raw population count data, raw standard population data, and the processing of all raw data), just set your working directory to this folder and run
The script will check to see if you already have downloaded and/or processed data and will not repeat those tasks if so. It will, however, overwrite existing plots.
Please note that even with a reasonably fast internet connection and processor, going from zero data to paper plots will take (at least) an hour or so.
Additionally, we re-created plots for the paper that include confidence intervals. These are commented out (since they are not in the actual paper), but can be generated by simmply uncommenting and running the code.
Lastly, an additional presentation was given at UMass Amherst. To reproduce those plots, just run