R Resources

We use R for most statistical analyses. To help ourselves and others, here is a list of the R resources we find most useful.

Cheat Sheets

Dan's R Cheat Sheet: a 2-page summary of the functions I use the most.

Cheatsheets by RStudio: info-packed 2-page guides for graphing, data wrangling, markdown, etc.

Reference Websites

Quick-R: an excellent searchable reference guide

Cookbook for R: cookbook-style how-to wiki, particularly useful for experimental psychology

Penn R study group: detailed reference in the form of tutorial notes

ggplot2: documentation website for our main graphics tool
A chart chooser: simple examples of many different kinds of ggplot graphs.

The R graph gallery: many different graph examples with snippets of code for generating them.

Markdown Cheatsheet: a quick reference for markdown syntax.

Matlab/R Reference guide: A handy reference for both R and Matlab (our other main analytical tool)

Hadley Wickham's Style Guide

Learning R
Flow chart

  • For absolute beginners who want a gentle (or silly) introduction
    • Try R: a very nicely designed basic R tutorial from O'Reilly and Code School -- ideal for novices with no programming experience.
    • R for cats: a basic introduction to R, particularly good if you have no programming experience (and like cats).
    • DataCamp Introduction to R: Online interactive tutorial that covers the basics (intro is free, additional courses require membership fee)
    • Intro to R: a series of short videos (2-6 minutes) demonstrating basic R tasks or concepts
    • Learn R Programming: a good introductory R programming tutorial
  • For beginners who want a more comprehensive guide
    • APS guide to Learning to Work With R
    • R Bootcamp: a tutorial developed by Jared Knowles
    • R Guide: a thorough (but accessible) guide developed for people doing (personality) psychology research
    • R Tutorial (by Kelly Black): introduction to R from basic data types to basic statistics
  • For intermediate users who are familiar with command line interfaces and want to learn R
    • R Tutorial: covers both R and statistics, from basics to advanced methods (tip: use the "R Tutorials" navigation section on the right side)
    • R Tutorial Series (Blog): a series of clear how-to guides (see contents menu in the right navigation bar)
  • Resources to help you learn and use R: from the Institute for Digital Research and Education at UCLA
  • A collection of R tutorials

Community

R-lang

R Bloggers: A blog aggregator pulling together posts from over 140 bloggers who write about R in English

StackOverflow - R: A great community Q & A site. If you have a problem, they can usually help you.

Books

YaRrr! A Pirate's Guide to R by Nathaniel D. Phillips (free ebook)

Applied R for the quantitative social scientist by Rense Nieuwenhuis (free pdf!)

R in a Nutshell by Joseph Adler

R for SAS and SPSS Users by Robert Muenchen

Analyzing Linguistic Data by Harald Baayen

ggplot2: part of the Use R! series of focused guide books


Books that teach statistics and R together:
Learning Statistics with R by Dani Navarro (ebook is free!)
Discovering Statistics Using R by Andy Field, Jeremy Miles, & Zoe Field
Ċ
Dan Mirman,
Sep 20, 2013, 11:28 AM
Comments