Alternate way of plotting means and errors

May 20, 2012
By

(This article was first published on The Praise of Insects, and kindly contributed to R-bloggers)

Last month, I wrote a post discussing dynamite plots, noting that they're not considered to be especially good at presenting information. I got a little bit of flak for it, from people for and against dynamite plots. This post shows a different method of showing a point and an error bar. If you're going to do it, why not make it look like something cool. A TIE fighter maybe?
Values <- c(1,2,5,4)
Errors <- c(0.25, 0.5, 0.33, 0.12)
dummyNames <- paste("Trial", 1:4)

TIEplot(1:4, Values, Errors, names = dummyNames, ylim = c(0,6))

How much cooler is that?
TIE fighter plot

The code for TIEplot() is available on gitHub. Remember to acknowledge me when you use in all your papers/books/theses.

To leave a comment for the author, please follow the link and comment on his blog: The Praise of Insects.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.