title: binning and plotting in R/python
body: <p>I have following data set:</p>
  
  <pre><code>1   yes 50  60  35  40  44
  1   No  10  2   40  
  2   yes 50  60  35  40
  2   No  10  2   40  8   6
  3   yes 50  60  35  40  35
  3   No  10  2   40
  </code></pre>
  
  <p>There are several bins like 1,2,3... which has values for two categories ( Yes and No). Number of values in each category might not be the same. I am trying to get a plot which looks something like below. I have used only simple plots like heat maps or scatter plots but never done this sort of plot before. can anybody help with this ? <strong>I am happy to reformat the data structure.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/O49qU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O49qU.jpg" alt="enter image description here"></a></p>