title: Stacked percentage barplot with two factors
body: <p>I have a dataset where every datapoint is either &quot;yes&quot; or &quot;no&quot; for variable1, and either 1-2-3-4 for another factor (categorical) called &quot;round&quot;. I would like to plot the rate of &quot;yes&quot; and &quot;no&quot; per round 1 through 4 on a stacked barplot where the columns show percentages, not freqs. For some reason this seems very complicated. I have tried multiple things with ggplot but I can't get it to show my proportions in y, I'm probably missing something with &quot;count&quot;.</p>
  <p>I'm also open to working directly with a dataframe that would show the proportions (as follows), but I'd rather be able to do it directly from the original dataframe:
  1 - 12.11% yes
  2 - 14.02% yes
  3 - 26.59% yes
  4 - 34.09% yes</p>
  <p>Any tips will be greatly appreciated! Thank you</p>