R lab

A lab on how to carry out regression in R, and related topics, is available here.


Learn R by example

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


Data

Download a .zip file with all the data for chapter 17 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 17.1. Lion ages

Whitman, K., A. M. Starfield, H. S. Quadling and C. Packer. 2004. Nature 428: 175-178.

Example 17.3. Plant species and biomass

Tilman, D., P. B. Reich, and J. M. H. Knops. 2006. Nature 441: 629-632.

Figure 17.5-2. Junco outlier

Yeh, P. J. 2004. Evolution 58: 166–174.

Figure 17.5-3. Desert pool fish

Kodric-Brown, A., and J. H. Brown. 1993. Ecology 74: 1847–1855.

Figure 17.5-4 left. Cap color

Hadfield, J. D., et al. 2006. Proceedings of the Royal Society of London, Series B, Biological Sciences 273: 1347–1353.

Figure 17.5-4 right. Cockroach neurons

Murphy, B. F., Jr., and J. E. Heath. 1983. Journal of Experimental Biology 105: 305–315.

Figure 17.6-3. Iris pollen

Pauw, A., J. Stofberg, and R. J. Waterman. 2009. Evolution 63: 268-279.

Figure 17.8-1. Iron and plankton

Sunda, W. G., and Huntsman, S. A. 1997. Nature 390: 389–392.

Figure 17.8-2. Plants and productivity

Chase, J. M., and M. A. Leibold. 2002. Nature 416: 427-430.

Example 17.8. Shrinking seals

Trites. A. W. 1996. Journal of Zoology, London 238: 459-482.

Figure 17.9-1. Guppy lethal temperature

Pitkow, R. B. 1060. Biological Bulletin 119: 231-245.


Data for problem sets

17.01. Faces and aggression

Carré, J. M., and C. M McCormick. 2008. Proceedings of the Royal Society of London, Series B, Biological Sciences 275: 2651–2656.

17.06. Zoo mortality

Clubb, R. and G. Mason. 2003. Nature 425: 473-474.

17.07. Exercise and progesterone

Brutsaert, T. D., et al. 2002. Journal of Experimental Biology 205: 233-239.

17.10. Hybrid pollen sterility

Moyle, L. C., M. S. Olson, and P. Tiffin. 2004. Evolution 58: 1195-1208.

17.11. Rattlensake digestion

Tattersall, G. J., et al. 2004. Journal of Experimental Biology 207: 579-585.

17.12. Lizard bites

Lappin, A. K., and J. F. Husak. 2005. American Naturalist 166: 426-436.

17.14. Hypoxanthine and time of death

James, R. A., P. A. Hoadley, and B. G. Sampson. 1997. American Journal of Forensic Medicine and Pathology 18: 158-162.

17.15. Social spiders

Rypstra, A. L. 1979. Behavioral Ecology and Sociobiology 5: 291-300.

17.17. Earthworms and nitrogen

Gundale, M. J., W. M. Jolly, and T. H. Deluca. 2005. Conservation Biology 19: 1075-1083.

17.18. Cypress respiration

Reich, P. B., M. G. Tjoelker, J.-L. Machado, and J. Oleksyn. 2006. Nature 439: 457-461.

17.19. Brothers and testes

Fisher, H. S., K. A. Hook, W. D. Weber, and H. E. Hoekstra. 2018. Ecology and Evolution 8: 8197-8203.

17.20. Grassland nutrients

Harpole, W. S. and D. Tilman. 2007. Nature 446: 791-793.

17.21. Primate metabolic rates

Heusner, A. A. 1991. Size and power in mammals. Journal of Experimental Biology 160: 25-54.

17.23. Flycatcher patch

Griffith, S. C. and B. C. Sheldon. 2001. Animal Behaviour 61: 987-993.

17.24. Connectivity and extinction

Jousimo, J., et al. 2014. Science 344:1289-1293.

17.25. Penguin treadmill

Green, J. A., et al. 2001. The Journal of Experimental Biology 204: 673-684.

17.26. Beetle wings and horns

Emlen, D. J. 2001. Science 291: 1534-1536.

17.27. Song of extinct katydid

Gua, J.-J., et al. 2012. Proceedings of the National Academy of Sciences (USA) 109: 3868-3873.

17.28. Daphnia parasites

Jensen, K. H., T. Little, A. Skorping, and D. Ebert. 2006. PLoS Biology 4: 1265-1269.

17.29. Grassland disease

Parker, I. M., et al. 2015. Nature 520: 542-544.

17.30. Mosquito bites

Golenda, C. F., et al. 1999. American Journal of Tropical Medicine and Hygiene 60: 654-657.

17.31. Nuclear teeth

Spalding, K. L.. et al. 2005. Nature 437: 333-334.

17.32. Last supper portion sizes

Wansink, B., and C. S. Wansink. 2010. International Journal of Obesity 34: 943–944.

17.33. Coral snake mimics

Harper, G. R., Jr. and D. W. Pfennig. 2008. Nature 451: 1103-1106.

17.34. Laying date and climate change

Reed T. E., et al. 2013. Dryad Digital Repository. doi:10.5061/dryad.8fc60

17.35. Fathers age and mutations

Kong, A., et al. 2012. Nature 488: 471-475.

17.36. Bees and climate change

Kerr, J. T. et al. 2015. Science 349:177-180.