Adam Wilson

Studying Ecological Change in a Changing World

Protea

Code and Computing Resources

RThe R project for Statistical Computing

R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS. To download R, please choose your preferred CRAN mirror at http://cran.r-project.org/mirrors.html . I do most of my coding projects in R.


I've developed a Google custom search engine that searches R-related sites. If you are interested in helping make this search better, let me know. Check that out here. or just search:

A presentation Natalia Norden and I gave at the 2008 UConn EEB Graduate Research Symposium on what R can do for you.

Introduction to R

A short course in R (EEB 5894 section 3) Fall 2008
Adam Wilson and Natalia Norden

Course Resources

The "R for Beginners" book: http://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf

The R "Cheat Sheet" (a great resource to print out and keep near the computer) http://cran.r-project.org/doc/contrib/Short-refcard.pdf

Class 1

Course Notes

  1. R Overview
  2. Importing/exporting
  3. Data Types

Class 2

Course Notes

  1. Data Manipulation
  2. Intro to graphics
  3. Intro to statistics

Class 3

Course Notes

  1. Data Manipulation continued (tapply, table, for, if)
  2. Jenica Allen's example

Class 4

Course Notes

  1. Intro to modeling
  2. Overview of packages
  3. Linear models - lm() and anova()
  4. Examples by Suegene and Susan

Class 5

  1. Advanced programming
  2. Writing functions
  3. More about loops
  4. You can get the files we used at the following links
    1. http://hydrodictyon.eeb.uconn.edu/people/wilson/Files/R/loop.jenica.R
    2. http://hydrodictyon.eeb.uconn.edu/people/wilson/Files/R/examples.R
    3. http://hydrodictyon.eeb.uconn.edu/people/wilson/Files/R/fill.1dimension.R

Class 6

Course Notes

  1. Spatial data analysis
  2. sp class
  3. importing spatial data
  4. Example by Trina (download data here).

R Examples

Below are some examples of code I've been working with. Let me know if you find anything useful.

A simple Bayesian linear regression using the UMacs package: Umacs.R

Code to produce a "polyplot": R plot example that is useful for timeseries display: polyplot.R

South African Biodiversity

A few photographs of plants from the Cape Floristic Region of South Africa