Learn R by example

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


Data

Download a .zip file with all the data for chapter 18 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 18.2. Zooplankton depredation

Svanbäck, R. and D. I. Bolnick. 2007. Proceedings of the Royal Society of London Series B, Biological Sciences 274: 839-844.

Example 18.3. Intertidal algae

Harley, C. D. G. 2003. Ecology 84: 1477-1488.

Example 18.4. Mole rat layabouts

Scantlebury, M., et al. 2006. Nature 440: 795-797.


Data for problem sets

18.06. Hippocampus lesions

Broadbent, N. J., L. R. Squire, and R. E. Clark. 2004. Proceedings of the National Academy of Sciences 101: 14515-14520.

18.07. SP and female lifespan

Barnes, A. I., et al. 2008. Proceedings of the Royal Society of London, Series B, Biological Sciences 275: 1675-1683.

18.08. Bee genes

Ben-Shahar, Y., et al. 2002. Science 296: 741-744.

18.11. Mouse empathy

Langford, D. J.,et al. 2006. Science 312: 1967-1970.

18.12. Neanderthal brains

Ruff, C. B., E. Trinkaus, and T. W. Holliday. 1997. Nature 387: 173-176.

18.14. Larval fish

Hsieh, C. H., et al. 2006. Nature 443: 859-862.

18.17. Opsin expression

Fuller, R. C., L. A. Noa, and R. S. Strellner. 2010. American Naturalist 176: 1-13.

18.18. Trichomes and beetles

Sato, Y., and H. Kudoh. 2017. American Naturalist 190: E67-E77.