title: Move labels in ggplot2 pie graph
body: <p>I know from <a href="https://stackoverflow.com/questions/52960015/how-to-avoid-label-overlap-in-pie-chart">How to avoid label overlap in pie chart</a> that I can use <code>ggrepel</code> to make labels not overlap in a pie graph.  I would like percentages less than 7% moved to the outside and numbers 7% or more on top of their slice of the pie.  Any ideas?</p>
  
  <pre><code>library( ggrepel )
  library( ggplot2)
      library( dplyr)
      library( scales )
      library( reshape )
  
      y &lt;- data.frame( 
              state = c( "AR" ) , 
              ac = c( 0.43 ) , 
              man = c( 0.26 ) , 
              ltc = c( 0.25 ) , 
              care = c( 0.05 ) , 
              dsh = c( 0.01 ) 
              )
  
      y2 &lt;- melt( y , id.var="state" )
  
  
      test &lt;- ggplot( y2 , aes( x=1 , y=value , fill=variable )) +
                  geom_bar( width = 1 , stat = "identity" ) +
                  geom_text_repel( aes( label = paste( y2$variable , percent( value )) ) , position = position_fill( vjust = 0.5 ) , color="white" , size=5 ) +
                  coord_polar( "y" , start = 0 ) + 
                  scale_fill_manual( values=c( "#003C64" , "#0077C8" , "#7FBBE3" , "#BFDDF1" , "#00BC87" ) )
  
      test
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/1funB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1funB.png" alt="enter image description here"></a></p>
  
  <p>So in this example, the 1% and 5% would be in the grey area.</p>