title: Remove errorbars from legend (ggplot2)
body: <p>I have a plot drawn with the following command:</p>
  
  <pre><code>ggplot(data=test_mod, aes(x=realDist , y=1-value, color=as.factor(foo) , size=as.factor(foo) )) +
    stat_summary(fun.y=mean, geom="line", alpha=0.85 ) + 
    stat_summary(fun.y=mean, geom="point", pch=21, fill="white", size=2 ) +
    #stat_summary(fun.data=mean_cl_normal, geom="errorbar", width=8, size = 0.5) + 
    theme_bw(base_size = 15, base_family = "Palatino") + 
    theme(legend.key = element_blank()) 
  </code></pre>
  
  <p>And I get this legend:</p>
  
  <p><img src="https://i.stack.imgur.com/VEXe6.png" alt="enter image description here"></p>
  
  <p>However, when I uncomment the line 3 of the command:</p>
  
  <pre><code>ggplot(data=test_mod, aes(x=realDist , y=1-value, color=as.factor(foo) , size=as.factor(foo) )) +
    stat_summary(fun.y=mean, geom="line", alpha=0.85 ) + 
    stat_summary(fun.y=mean, geom="point", pch=21, fill="white", size=2 ) +
    stat_summary(fun.data=mean_cl_normal, geom="errorbar", width=8, size = 0.5) + 
    theme_bw(base_size = 15, base_family = "Palatino") + 
    theme(legend.key = element_blank()) 
  </code></pre>
  
  <p>I get a slightly different legend:</p>
  
  <p><img src="https://i.stack.imgur.com/cMlKX.png" alt="enter image description here"></p>
  
  <p>Note the <strong>tiny lines</strong> which go across the dots after I started using <code>errorbar</code> for my plot.</p>
  
  <p>How can I get rid of those tiny lines appearing in my legend?</p>