title: Setting Error bars values in ggpubr package in R
body: <p>I have the values of the error bars, and I want to specify the values in &quot;ggpubr&quot; .
  It seems like the &quot;add,&quot; and &quot;error.plot&quot; functions have a lot of possibilities (e.g., &quot;mean_sd&quot;), but I couldn't find anything that will allow me to specify the values myself.
  I also tried &quot;geom_errorbar,&quot; but it doesn't work properly.
  I know, next time I will use ggplot2 for flexibility.</p>
  <p>example code -</p>
  <pre><code>df &lt;- data.frame(stringsAsFactors = FALSE, &quot;pse&quot; = c(40, 42, 41, 40, 60, 61, 62, 60, 39, 38, 40, 39, 59, 58, 60, 59 ))
  
  df[1:4,2]=&quot;30 cm&quot;
  df[5:8,2]=&quot;60 cm&quot;
  df[9:12,2]=&quot;30 cm&quot;
  df[13:16,2]=&quot;60 cm&quot;
  df[1:8,3] = &quot;3.5 cm&quot;
  df[9:16,3] = &quot;6.5 cm&quot;
  colnames(df)[2]=&quot;Size&quot;
  colnames(df)[3]=&quot;Distance&quot;
  
  my_comparisons &lt;- list( c(&quot;Near&quot;, &quot;Far&quot;))
  ggbarplot(df, x = &quot;Size&quot;, y = &quot;pse&quot;, fill =&quot;Distance&quot;, color = &quot;Distance&quot;, ylim=c(25,75), width = 0.6, add = c(&quot;mean_se&quot;, &quot;jitter&quot;), palette = c(&quot;#000000&quot;, &quot;#111111&quot;),
  position = position_dodge(0.65))+
  theme(legend.position = &quot;top&quot;)+ theme_bw() + theme(axis.text=element_text(size=14),axis.title=element_text(size=14))+ scale_fill_grey(start=0.8, end=0.95)+ theme(legend.position = &quot;top&quot;)+ ylab (&quot;PSE (mm)&quot;)[![enter image description here][1]][1]
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Ey0y7.jpg" rel="nofollow noreferrer">1</a>:<a href="https://i.stack.imgur.com/Ey0y7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ey0y7.jpg" alt="enter image description here" /></a> <a href="https://i.stack.imgur.com/AlrKa.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/AlrKa.jpg</a></p>