I have a bar plot which I need to add an error bar to. It should be an error span which is the same for each column, so a bit different from standard error bars. In former questions only error bars dependent on mean or standard deviation were discussed.
I tried the arrow function
arrows(dat$usage_time, dat$usage_time-1, dat$usage_time, dat$usage_time+1, length=0.05, angle=90, code=3)
but it didn't really work. dat$usage_time
is an integer, which is supposed to go as a coordinate. What is the problem?