title: How to shift x axis positions of two geoms relative to each other
body: <p>I have a <code>ggplot</code> plot. I need to shift error bars relative to jittered points. My code is: </p>
  
  <pre><code>data("cabbages", package = "MASS")
  
  require("ggplot2")
  
  pos_1 &lt;- position_jitterdodge(
      jitter.width  = 0.25,
      jitter.height = 0,
      dodge.width   = 0.9
  )
  
  gg &lt;-
      ggplot(data = cabbages,
             aes(
                 x      = Cult,
                 y      = HeadWt,
                 colour = Cult,
                 fill   = Cult
                 )) +
  
      geom_jitter(alpha = 0.4, position = pos_1) +
  
      stat_summary(fun.y = "mean", geom = "point", size = 3) +
  
      stat_summary(fun.data = "mean_cl_normal",
                   geom = "errorbar",
                   width = 0.05,
                   lwd = 1,
                   fun.args = list(conf.int = 0.95)
  ) +
  
      theme_bw()
  
  print(gg)
  </code></pre>
  
  <p>Current result is:</p>
  
  <p><a href="https://i.stack.imgur.com/Szp1A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Szp1A.png" alt="enter image description here"></a></p>
  
  <p>And I need something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/3kYYh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3kYYh.jpg" alt="enter image description here"></a></p>