title: Can geom_dotplot & geom_text_repel work together? (DotPlot with labels.)
body: <p>I would like to create a dotplot with labels like shown in the graphic.</p>
  <p>However I cant get <code>geom_text_repel</code> to draw lines to the correct positions if points are close together.</p>
  <pre><code>df=data.frame(name=c(&quot;A1&quot;,&quot;A2&quot;,&quot;B1&quot;,&quot;B2&quot;,&quot;B3&quot;),value=c(1,2,2,2,2),group=c(&quot;A&quot;,&quot;A&quot;,&quot;B&quot;,&quot;B&quot;,&quot;B&quot;))
  
  ggplot(df,aes(x=group,y=value,label=name))+
    geom_dotplot(df,mapping=aes(x=group,y=value),binaxis='y', stackdir='center', dotsize=1)+
    geom_text_repel(df,mapping=aes(segment.color=&quot;red&quot;),box.padding = 1,max.overlaps=10)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/VKCRd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VKCRd.png" alt="enter image description here" /></a></p>