title: Histogram of two variables in R
body: <p>I have two variables that I want to compare in a histogram like the one below. For each bin of the histogram the frequency of both variables is shown what makes it easy to compare them.</p>
  
  <p><img src="https://i.stack.imgur.com/7iaC4.png" alt="enter image description here"></p>