title: R: plotting decision tree labels leaves text cut off
body: <p>(I'm still learning how to handle images in R; this is sort of a continuation of <a href="https://stackoverflow.com/questions/16424691/rpart-package-save-decision-tree-to-png?noredirect=1#comment23552980_16424691">rpart package: Save Decision Tree to PNG</a> ) </p>
  
  <p>I'm trying to save a decision tree plot from rpart in PNG form, instead of the provided postscript. My code looks like this: </p>
  
  <pre><code>png("tree.png", width=1000, height=800, antialias="cleartype")
  plot(fit, uniform=TRUE, 
     main="Classification Tree")
  text(fit, use.n=TRUE, all=TRUE, cex=.8)
  dev.off()
  </code></pre>
  
  <p>but cuts off a little of the labels for the edge nodes on both sides. this isn't a problem in the original <code>post</code> image, which I've converted to png just to check. I've tried using both <code>oma</code> and <code>mar</code> settings in <code>par</code>, which were recommended as solutions for label/text problems, and both added white space around the image but don't show anymore of the labels. Is there any way to get the text to fit?  </p>