Skip to content
Prev 213207 / 398500 Next

pie EPS BB

On Mar 10, 2010, at 4:03 PM, Ted Harding wrote:

            
Ted, try this:

pcts <- c(3.0, 2.0, 0.4, 10.0, 12.0, 3.0, 39.0, 14.0,
          7.0, 9.6)

postscript("piecharttest.eps", horizontal = FALSE,
           onefile = FALSE, paper = "special", 
           width = 3.0, height = 3.0)

par(mar = c(0, 0, 0, 0), xaxs = "i", yaxs = "i")

pie(pcts, clockwise = TRUE, labels = rep(NA, 10), 
    radius = 1.0)

dev.off()


Two things:

1. Set the margins to 0 on all four sides and set the axes to 'i' so that they don't expand by the default 4%.

2. You forgot the 'onefile = FALSE' in the call to postscript().

HTH,

Marc Schwartz