Base Graphics in R: A Detailed Idiot’s Guide

One of the most powerful functions of R is its ability to produce a wide range of graphics to quickly and easily visualise data. Plots can be replicated, modified and even publishable with just a handful of commands.

Making the leap from chiefly graphical programmes, such as Excel and Sigmaplot may seem tricky. However, with a basic knowledge of R, just investing a few hours could completely revolutionise your data visualisation and workflow. Trust me – it’s worth it.

Last year, I presented an informal seminar on the basics of R Graphics at University of Turku. In this blog post, I am providing some of the slides and the full code from that practical, which shows how to build different plot types using the basic (i.e. pre-installed) graphics in R, including:

After much wrangling with WordPress, I used the very simple ‘Publish’ button on R-Markdown to host the tutorial on RPubs. This post is BIG, but DETAILED. The Tutorial itself is HERE and all code and datafiles are available here.

Feedback is welcomed. I hope someone out there finds it useful!

An Introduction to R Graphics: Slides

About susanejohnston

Postdoctoral researcher at the University of Edinburgh, interested in ecology, evolution and genetics.
This entry was posted in R, Tutorial. Bookmark the permalink.

One Response to Base Graphics in R: A Detailed Idiot’s Guide

  1. Pingback: What we’re reading: Compressed genomes, drafting genes, and the third post-publication peer reviewer | The Molecular Ecologist

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s