title: ggplot percentage positive per factor class
body: <p>Apologies for the noob question.
  I have scoured the forum but have only come across counts as proportions per 100%  bar, or from all groups combined.</p>
  <p>Can someone please help getting the following into a form so that only the % positive (Yes) are shown per &quot;Parent&quot; group a much neater fashion? ie a simple bar chart with the %yes shown and maybe with a % above each bar?</p>
  <pre><code>library(dplyr)
  library(ggplot2)
  library(forcats)
  
  test1&lt;- data.frame(Class= c(&quot;yes&quot;,&quot;yes&quot;,&quot;NA&quot;,&quot;yes&quot;,&quot;NA&quot;,&quot;yes&quot;,&quot;yes&quot;,&quot;NA&quot;,&quot;yes&quot;,&quot;yes&quot;), 
                     Parent= c(&quot;LN1&quot;,&quot;LN2&quot;,&quot;LN1&quot;,&quot;LN2&quot;,&quot;LN1&quot;,&quot;LN2&quot;,&quot;LN1&quot;,&quot;LN2&quot;,&quot;LN1&quot;,&quot;LN2&quot;))
  
  test1&lt;- test1 %&gt;% mutate_if(is.character, factor)
  
  test1 %&gt;% 
    mutate(Parent= fct_relevel(Parent, &quot;LN1&quot;, &quot;LN2&quot;)) %&gt;% 
    ggplot(aes(Parent, fill= Class))+
    geom_bar(position = &quot;fill&quot;,
            stat= &quot;count&quot;) +
    geom_label(aes(y = ..prop..,
                   label = Class),
               position = &quot;fill&quot;,
               stat = &quot;Count&quot;)
  </code></pre>