title: Centering Values on Bars in Histogram in R
body: <p>Looking to have the values of x-axis plotted in the center of the bars in R. </p>
  
  <p>Having issues finding a way to make this possible, code is below:</p>
  
  <pre><code>hist(sample_avg, breaks =7, ylim=c(0,2000), 
      main = 'Histogram of Sample Average for 1 Coin Flip', xlab= 'Sample Average')
  </code></pre>
  
  <p>This is just for a coin flip, so I have 6 possible values and want to have 6 buckets with the x-axis tick marks underneath each respective bar.</p>
  
  <p>Any help is much appreciated. </p>