title: Plot multiple points of a single factor side by side
body: <p>This is a sample data and a plot that I produced.</p>
  <pre><code>library(ggplot2)  
  value&lt;-c(-1.01, -0.02,1.61,0.60, -0.98,0.19,4.68,-0.86,-3.52,-1.85,-2.08,-0.48,0.10,-1.05,-0.003) 
  sd&lt;-c(1.40,0.48,0.83,0.41,0.80,0.36,1.52,0.30,1.19,0.44,1.33,0.45,0.64,0.35,1.20)
  variable&lt;-rep(c(&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;),times=3)
  clss&lt;-rep(c(&quot;NC&quot;,&quot;RC&quot;,&quot;LC&quot;),each=5)
  df&lt;-data.frame(value,variable,clss)
  
  ggplot(df,aes(x=variable,y = value))+
  geom_point()+
  geom_hline(yintercept = 0, size = I(0.2), color = I(&quot;red&quot;)) +
  geom_errorbar(aes(ymin = value - 1.96 * sd, ymax = value + 1.96 * sd),width = .1)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/pPiJE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pPiJE.jpg" alt="enter image description here" /></a></p>
  <p>Since there are three points for each A, B, C, D and E, I want to plot the three points side by side rather than in a single column. This also implies that I need some spacing betweeen label A and B, B and C and so on so that the three points of A,B,C,D and E are seen separately on the graph.</p>
  <p>I tried to use jitters</p>
  <p><a href="https://i.stack.imgur.com/iZdUp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iZdUp.jpg" alt="enter image description here" /></a></p>
  <p>But it only shifts my points and not my error bars. Also I need the placement of A to be the middle of the three points. Similarly for B, C, D and E.</p>