Daily Archives: 27.06.12

R – barplot with error-bars

I have not found any simple way to make a barplot with error-bars in R, so I had to write a script for it: errorbarplot< -function(data,error,ylab,xlab,main){ palette(c('gray75','grey50','grey25','white')) mar=par()$mar par(xpd=T, mar=par()$mar+c(0,0,0,8)) # Makes a bit space to place the legend maxy=max(data+error)*1.05 … Continue reading

Posted in R | Comments Off on R – barplot with error-bars