This is for a class I taught…
Agenda for 2/13/15 lab meeting
- Getting started: You can download the current version of R for free here: R Download. You will also want to get and install R Studio: Rstudio download.
- Importing data: You can copy and paste data from your clipboard or import a CSV with base R. Use haven (new) or foreign to open SPSS, SAS and Stata files. If you don't want to save your Excel file as a CSV, you should be able to use the XLSX package to open it.
- Plotting data: You can use R's built-in plotting tools or ggplot2 to make beautiful graphs.
- Cleaning/manipulating data: See my R Club post about working with messy datasets.
- #rstats To go a bit further, you may want to look at the Psych 611 highlights part I.
An example of a plot in R (using ggplot2)
You can look at three variables at once fairly easily by using a gradient or a transparency for the third variable. If the outcome variable here followed a normal distribution, you would see more of a patterned color change from left to right.