title: adding spread data to dotplots in R
body: <p>I have a table with averages and interquartile ranges. I would like to create a dotplot, where the dot would show this average, and a bar would stretch through the dot, to show the interquartile range. In other words, the dot would be at the midpoint of a bar, the length of which would equal my interquartile range data. I am working in R. </p>
  
  <p>For example, </p>
  
  <pre><code>labels&lt;-c('a','b','c','d')
  averages&lt;-c(10,40,20,30)
  ranges&lt;-c(5,8,4,10)
  dotchart(averages,labels=labels)
  </code></pre>
  
  <p>where the ranges would then be added to this plot as bars.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>