Alternate way of plotting means and errors

[This article was first published on The Praise of Insects, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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 their blog: The Praise of Insects.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)