Learn R by example

We used R to analyze all examples in chapter 21. We’ve put the code here so that you can too.


Data

Download a .zip file with all the data for chapter 21 in .csv format here.

Download a .zip file with all data sets in the book here.

All data sets and their sources are listed individually below.

Disclaimer: Most data sets used in the book are grabbed from graphs and tables in the original publications, and the values may not be exact. Contact the original authors for the raw data.


Data for examples

Example 21.1 Ebola outbreak

Waxman, M., A. R. Aluisio, S. Rege, and A. C. Levine. 2017. Lancet Infectious Diseases 17: 654-660.

Example 21.2 Tumor genetics

Sørlie, T., et al. 2003. Repeated observation of breast tumor subtypes in independent gene expression data sets. Proceedings of the National Academy of Sciences USA 100: 8418–8423.


Data for problem sets

12.6 and 12.7 Game of Thrones

Lystad R.P. and B.T. Brown. 2018. “Death is certain, the time is not”: mortality and survival in Game of Thrones. Injury Epidemiology 5:44.

Lystad R.P and B. T. Brown. 2019. Figshare. Available from: https://dx.doi.org/10.6084/m9.figshare.8259680

21.8 and 21.9 Siberian jays

Griesser, M., et al. 2017. Oikos 126: 1258-1268.

Griesser, M., et al. 2017. Dryad Digital Repository. https://doi.org/10.5061/dryad.83r81

21.13 and 21.14 Desert isopods

Baker, M. B., and S. Rao. 2004. Ecology 85: 1039-1051.

21.15 and 21.16 Worms and immune response

Ezenwa, V. O. and A. E. Jolles. 2015. Science 347: 175-177.

Ezenwa, V. O. and A. E. Jolles. 2015. Dryad Digital Repository. https://doi.org/10.5061/dryad.q2m38

21.18 Costs of learning Zwoinska, M. K., et al. 2016. Evolution 70: 342-357.

Zwoinska, M. K., et al. 2016. Dryad Digital Repository. https://doi.org/10.5061/dryad.r4g6p