title: R studio histogram Error: stat_bin() must not be used with a y aesthetic
body: <p><img src="https://i.stack.imgur.com/LIG05.png" alt="enter image description here"></p>
  
  <p>I want to make a histogram with the data above, data shows the income per person in some country. Using this command I keep getting that </p>
  
  <blockquote>
    <p>Error: stat_bin() must not be used with a y aesthetic.</p>
  </blockquote>
  
  <pre class="lang-r prettyprint-override"><code>incomenew &lt;- data_opdracht_income_per_person_xlsx %&gt;%
    gather("1990":"2018", key = "year", value = "income")
  incomenew
  
  incomenew$year &lt;- as.numeric(incomenew$year)
  
  incomenew$income &lt;- as.numeric(incomenew$income)
  
  
  dataexample3 &lt;- incomenew %&gt;%
    filter(country == "Netherlands" | country == "China" | country == "Nigeria")
  
  figure4 &lt;- ggplot(data= dataexample3, mapping = aes(x=year, y=income))
  
  figure4 + geom_histogram() 
  </code></pre>
  
  <p>How can I change <code>y</code> not to be aesthetic?</p>