title: ggplot2 error "Warning: Ignoring unknown parameters: bins"
body: <p>I have a <code>df</code> that I am tryint to plot with the <code>geom_histogram</code> function:</p>
  
  <pre><code>structure(list(dFormat = c("11M 50S", "13M 30S", "14M 20S", "14M 40S", 
  "1M 10S", "1M 20S", "1M 40S", "1M 50S", "2M 10S", "2M 20S", "2M 30S", 
  "2M 40S", "2M 50S", "3M 0S", "3M 10S", "3M 20S", "3M 30S", "3M 40S", 
  "3M 50S", "4M 0S", "4M 10S", "4M 20S", "4M 30S", "4M 40S", "4M 50S", 
  "5M 0S", "5M 10S", "5M 20S", "5M 30S", "5M 40S", "5M 50S", "6M 0S", 
  "6M 10S", "6M 20S", "6M 30S", "6M 40S", "6M 50S", "7M 0S", "7M 10S", 
  "7M 20S", "7M 30S", "7M 40S", "7M 50S", "8M 0S", "8M 10S", "8M 20S", 
  "8M 30S", "8M 40S", "8M 50S", "9M 0S", "9M 10S", "9M 20S", "9M 30S"
  ), freq = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 1L, 1L, 1L, 1L, 
  2L, 6L, 7L, 10L, 20L, 22L, 47L, 39L, 82L, 66L, 121L, 107L, 162L, 
  145L, 208L, 162L, 240L, 162L, 228L, 200L, 197L, 159L, 185L, 126L, 
  157L, 113L, 123L, 73L, 61L, 49L, 33L, 23L, 18L, 11L, 16L, 5L, 
  6L, 4L, 2L, 2L)), .Names = c("dFormat", "freq"), row.names = c(NA, 
  -53L), class = "data.frame")
  </code></pre>
  
  <p>I am trying to make a simple histogram with the following code but I get an error:</p>
  
  <p><code>ggplot(df, aes(x = df$dFormat, y = df$freq)) + 
    geom_histogram(stat = "identity",binwidth = 50)</code></p>
  
  <p><code>Warning: Ignoring unknown parameters: binwidth, bins, pad</code></p>
  
  <p>Looking at the documentation I see:</p>
  
  <p><code>Number of bins. Overridden by binwidth. Defaults to 30</code></p>
  
  <p>Using <code>binwidth</code> doesn't solve the problem.</p>
  
  <p>Changing <code>geom_histogram</code> to <code>geom_bar</code> is of no help either.</p>
  
  <p><code>In addition: Warning message:
  </code>geom_bar()<code>no longer has a</code>binwidth<code>parameter. Please use</code>geom_histogram()<code>instead.</code></p>
  
  <p>I saw a similar question here but it is of no use</p>
  
  <p><a href="https://stackoverflow.com/questions/35981366/r-ggplot-error-unknown-parameters-binwidth-bins-pad/38739865#38739865">SO question</a></p>
  
  <p>Maybe @hadley would know</p>