Create error bars for scatter plot of multiple datasets

I'm not sure about plotrix, but ggplot has some pretty easy methods to apply error bars.

Also, for ease of understanding can you put three backticks "```" before and after your code? It should then format nicely and be easy to understand.