title: ggplot plotting problems and error bars
body: <p>So I have some data that I imported into R using read.csv.</p>
  
  <pre><code>d = read.csv("Flux_test_results_for_R.csv", header=TRUE)
  rows_to_plot = c(1,2,3,4,5,6,13,14)
  d[rows_to_plot,]
  </code></pre>
  
  <p>It looks like it worked fine:</p>
  
  <pre><code>&gt; d[rows_to_plot,]
          strain selective        rate      ci.low     ci.high
  1         4051       rif 1.97539e-09 6.93021e-10 5.63066e-09
  2         4052       rif 2.33927e-09 9.92957e-10 5.51099e-09
  3  4081 (mutS)       rif 1.32915e-07 1.05363e-07 1.67671e-07
  4  4086 (mutS)       rif 1.80342e-07 1.49870e-07 2.17011e-07
  5  4124 (mutL)       rif 5.53369e-08 4.03940e-08 7.58077e-08
  6  4125 (mutL)       rif 1.42575e-07 1.14957e-07 1.76828e-07
  13    4760-all       rif 6.74928e-08 5.41247e-08 8.41627e-08
  14    4761-all       rif 2.49119e-08 1.91979e-08 3.23265e-08
  </code></pre>
  
  <p>So now I'm trying to plot the column "rate", with "strain" as labels, and ci.low and ci.high as boundaries for confidence intervals. </p>
  
  <p>Using <code>ggplot</code>, I can't even get the plot to work. This gives a plot where all the dots are at 1 on the y-axis:</p>
  
  <pre><code>g &lt;- ggplot(data=d[rows_to_plot,], aes(x=strain, y=rate))
  g + geom_dotplot() 
  </code></pre>
  
  <p>Attempt at error bars:</p>
  
  <pre><code>error_limits = aes(ymax = d2$ci.high, ymin = d2$ci.low)
  g + geom_errorbar(error_limits)
  </code></pre>
  
  <p>As you can tell I'm a complete noob to plotting things in R, any help appreciated. </p>
  
  <p><strong>Answer update</strong>
  There were two things going on. As per boshek's answer, which I selected, I it seems that <code>geom_point()</code>, not <code>geom_dotplot()</code>, was the way to go. </p>
  
  <p>The other issue was that originally, I filtered the data to only plot some rows, but I didn't also filter the error limits by row. So I switched to:</p>
  
  <pre><code>d2 = d[c(1,2,3,4,5,6,13,14),]
  error_limits = aes(ymax = d2$ci.high, ymin = d2$ci.low)
  g = ggplot(data=d2, ...etc...
  </code></pre>