Alternate way of plotting means and errors
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
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?
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
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook