title: Remove endpoints from error bars in ggplot2
body: <p>My goal is to create boxplots in R (doesn't have to be with ggplot2, but that's what I'm using now) that are as stylistically similar to this example that I found somewhere (minus the text):</p>
  
  <p><a href="https://i.stack.imgur.com/0pcbj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0pcbj.png" alt="boxplot-example"></a></p>
  
  <p>Here's the code I have so far:</p>
  
  <pre><code>dat &lt;- read.table(file = "https://www.dropbox.com/s/b59b03rc8erea5d/dat.txt?dl=1", header = TRUE, sep = " ")
  library(ggplot2)
  p &lt;- ggplot(dat, aes(x = Subscale, y = Score, fill = Class))
  p + stat_boxplot(geom = "errorbar", width = 1.2, size = 2.5, color = "#0077B3") +
    geom_boxplot(outlier.shape = NA, coef = 0, position = position_dodge(.9)) +
    scale_fill_manual(values = c("#66CCFF", "#E6E6E6")) +
    theme(panel.background = element_rect(fill = "white", color = "white"))
  </code></pre>
  
  <p>Which results in:</p>
  
  <p><a href="https://i.stack.imgur.com/RbV4Q.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RbV4Q.png" alt="my-boxplot"></a></p>
  
  <p>Obviously there are a lot of differences between what I have and what the example shows, but right now I'm only focused on removing the endpoints from the error bars, by which I mean the horizontal top and bottom parts created by the <code>stat_boxplot</code> function. Does anyone know a way I can get the desired effect?</p>