title: Position argument of geom_text to set different tags
body: <p>I want three tags in each of my stacked bars. One I want it to be at the top of each bar saying the total number of observations per treatment variable (x axis). The other two tags I want them showing the number of observations per gender, to be somehwere in the middle of each Gender option within each treatment variable.</p>
  
  <p>I have problems with the geom_text code, since I don't know what position I should try. I have input different options, but when I do, my graph is distorted like this.</p>
  
  <p><a href="https://i.stack.imgur.com/qw2Az.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qw2Az.png" alt="enter image description here"></a></p>
  
  <p>This is the code I am using</p>
  
  <pre><code>Data1 %&gt;% 
    count(Treatment, Gender) %&gt;% 
    ggplot(aes(Treatment, n))+ 
    geom_col(aes(fill = Gender), position = "fill")+
    ggtitle("Gender")+
    ylab("Fraction")+
    theme(axis.text.x = element_text(angle = 90, vjust=0.3, hjust=1))+
    scale_fill_manual("Gender", 
                      values = c("Female" = "pink", "Male" = "light blue",
                                 "Other"="coral", "Prefer not to answer"="violet"))+
    geom_text(aes(label=n), position=position_stack(vjust=0.5))
  </code></pre>
  
  <p>If I have read correctly other posts, position_stack should put the numbers inside each bar.</p>