title: R prevent overlap in pie charts
body: <p>My data is like this:</p>
  
  <pre><code> VariantClass   PASS_ONTARGET
    Silent            50.30
    Missense          47.00
    Nonsense           0.74
    Startloss          0.26
    Stoploss           0.74
    Frameshift-indel   0.61
    Inframe-indel      0.35
  </code></pre>
  
  <p>and my code for generating pie chart is:</p>
  
  <pre><code>    data &lt;- read.table(file=Infilename, header=T, sep="\t")
      png(filename=Outfilename,height=4000,width=5000,res=600)
      y&lt;-data$PASS_ONTARGET
      color&lt;-c("blue","green","light blue","orange","purple","red","yellow")
      names&lt;-c(data$VariantClass)
      pie(y, labels=names, font=2, main="Variant Class Distribution", clockwise = FALSE, density = NULL, col = color, border = NULL, lty = NULL)
      legend("topright",legend=names,cex=1.0, bty="n", fill=c(color))
      dev.off()
  </code></pre>
  
  <p>The problem I am getting is that the labels on the graph are overlapping each other. How can I prevent that?</p>