List of R examples

Here a list of the files that we have been using so far.

  1. Opening data in R

    Description: Based on two different datasets (Eucalypt_leafdata.dat and CANBIOM3.dat), the script shows different ways to read data file formats in R.
    By: Timothy Gregoire. Date: September 21, 2007.

  2. Managing installing/updating of R packages

    Description: One thing leads to another.
    By: Qi Fen Li. Date: Oct 5, 2007.

  3. Making a panel of plots with an inner plot for each of them

    Description: Based on a hypothetical dataset (data1.txt), the script show how to produce a plot like this figure2.pdf.
    By: Christian Salas. Date: Oct 5, 2007.

  4. Multi-variate Exploratory Data Analysis

    Description: I provide a brief overview of packages available in R that can help one get started making sense of complex data sets in (MultiVariateEDAtext.pdf). I've provided a data set (it's published, but please acknowledge if you use it) and code to show various examples of useful graphical tools (large matrix plots, 'barcodes', and mosaic plots) (ECO6datosworking.csv and ToolkitFunDJC.txt). If you have any problems, or don't want to play with the datums yourself, here's what I managed to cobble together: MultiVariateEDA.pdf.
    By: Dylan Craven. Date: Oct 19, 2007.

  5. Use of split() and boxplots with the data points superimpose

    Description: The first script demonstrates use of split() to create a list object where each element of the list is a dataframe with data for a particular year; axis() to get long y-axis tick labels; points() to get a dotchart with more than one obs per row; mtext() to put text in outer margins; and cex parm to very size of plotting symbol by year of obs. The second script shows how to superimpose data values atop boxplots; use the by() function; use the jitter() function to offset overlapping data values; how to superimpose a horizontal line on each boxplot at the value of the mean.
    By: Tim Gregoire. Date: Nov 19, 2007.

Webmaster: Christian Salas, E-mail: christian.salas@yale.edu