title: ggplot bar chart of percentages over groups
body: <p>If I do the following command</p>
  
  <pre><code>data(mtcars)
  ggplot(data=mtcars, aes(cyl))+
    geom_bar(aes(fill=as.factor(gear), y = (..count..)/sum(..count..)), position="dodge") + 
    scale_y_continuous(labels=percent)
  </code></pre>
  
  <p>I will get <a href="https://i.stack.imgur.com/3vdjH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3vdjH.png" alt="enter image description here"></a></p>
  
  <p>However, what I really want to do is have each of the <code>gear</code> levels add up to 100%. So, <code>gear</code> is the subgroup I am looking at, and I want to know the distribution within each group. </p>
  
  <p>I don't want to use <code>facets</code> and I don't want to melt the data either. Is there a way to do this?</p>