How to add error bars in R

R has no error bar function? Surely not!

Well, yes and no. Error bars can be added to plots using the arrows() function and changing the arrow head. You can add vertical and horizontal error bars to any plot type. Simply provide the x and y coordinates, and whatever you are using for your error (e.g. standard deviation, standard error).

Read on to see how this is done with examples.

Quick guide to opening files from within R

R has loads of useful, but little known functions that can make life a little bit easier. As part of the "quick guide" series, this quick guide takes a look at opening files from within R - no more opening up file explorer and hunting around for that file!