title: Adjusting the x-Axis and Bins when Making a Histogram with Ggplot2
body: <p>I,n new to histograms in ggplot2 and feel like I'm missing something obvious. Using the the data below, I'm trying to create a simple histogram. All I want to do is have the x-axis count by 5, so 0-5-10-15-20-25-30...etc...100. So the bins will divide the age group by 5. I'm thinking maybe I have to set boundaries or something? I'm not sure why the example below creates some bars wider than others, and why the bars don't line up properly on the x-axis. </p>
  
  <p>I tried to find similar questions that have been asked previously but I'm still confused,especially between "break=" and "binwidth" and boundaries, etc. </p>
  
  <p>I would prefer an answer that uses ggplot 2.0. </p>
  
  <pre><code> Age&lt;-c(18,82,65,89,10,44,46,23,10,15,22,33,34,30,50,60)
   Sex&lt;-c("M","F","F","M","F","M","F","M","F","M","F","M","F","F","F","M")
   Df&lt;-data.frame(Sex,Age)
  
   ggplot(Df,aes(Age))+geom_histogram(breaks=seq(0,100,by=10),aes  (fill=..count..))
  </code></pre>