[R] postscript/eps label clipping

drf5n@mug.sys.virginia.edu drf5n at mug.sys.virginia.edu
Fri Jul 11 07:17:05 CEST 2003


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
-- 
 Dave Forrest    (434)924-3954w(111B) (804)642-0662h (804)695-2026p
 drf5n at maplepark.com            http://mug.sys.virginia.edu/~drf5n/




More information about the R-help mailing list