[R] postscript/eps label clipping

drf5n@mug.sys.virginia.edu
Fri, 11 Jul 2003 05:17:05 -0000

The following code produces an eps file with the tops of each of the ylabs
clipped off.

par(mfrow=c(2,2))
  plot(runif(10),
     ylab="Function(Lengthy Expression)",xlab="Prediction")
  plot(runif(10),
     ylab=expression(Delta * Beta^2),xlab="Prediction")
  plot(runif(10),
     ylab="Function(Lengthy Expression)",xlab="Prediction")
  plot(runif(10),
     ylab=expression(Delta * Beta^2),xlab="Prediction")
 dev.print(postscript,file="foo.eps",
  horizontal=FALSE,onefile=FALSE,paper="special",
  pointsize=7, width=5,height=4)

?postscript seems to indicate paper="special", width=, height=, and
pointsize= are the recommended way to produce nice latex graphics.

If I don't set a pointsize, the letters aren't clipped, but the graphs
are tiny with respect to the x/y labels.  Is there something else I should
be adjusting instead?

Thanks for your time,
Dave