title: plot count histogram in R ggplot
body: <p>I need help with this please.
  I have searched here but not got the right output.</p>
  
  <p>I am trying to plot this in R, so I can plot 3 files side-by-side in a single plot using GGplot.
  The output I desire (plotted with excel) is this</p>
  
  <p><a href="https://i.stack.imgur.com/gDLpf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gDLpf.png" alt="desired histogram"></a></p>
  
  <p>What i am getting using GGplot is this</p>
  
  <p><a href="https://i.stack.imgur.com/P8yFw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P8yFw.png" alt="ggplot output"></a></p>
  
  <p>The R code i am using is this</p>
  
  <pre><code>A1 &lt;- read.table("A1.txt", header = T, sep = "\t")
  library(ggplot2)
  ggplot(A1, aes(x = count)) + geom_bar()
  </code></pre>
  
  <p>The data is a tab-delimited file like this</p>
  
  <pre><code>length  count
  26  344776
  27  289439
  18  673395
  28  338146
  19  710702
  20  928326
  21  3491352
  22  2724981
  23  699007
  24  726121
  25  472509
  </code></pre>
  
  <p>The length, as it were will only be labels on the x axis for the counts plotted on the y-axis.</p>