title: Overlaying jittered points on boxplot conditioned by a factor using ggplot2
body: <p>I am making a boxplot conditioned by a factor similar to this example:</p>
  
  <pre><code>p &lt;- ggplot(mtcars, aes(factor(cyl), mpg))
  p + geom_boxplot(aes(fill = factor(am)))
  </code></pre>
  
  <p>There are few points in the data set, and I'd like to express this visually by overlaying the data points. I want to overlay the points colored by the same factor "am" which I try to do like this:</p>
  
  <pre><code>p + geom_boxplot(aes(fill = factor(am))) + geom_jitter(aes(colour = factor(am)))
  </code></pre>
  
  <p>The points are colored by the factor "am" but not spaced to lay only over the box plots they are associated with. Rather they mix and cover both. 
  Does anyone know how the condition the <code>geom_jitter</code> so the points associate with the factor "am"?</p>