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/
Never having used postscript as an output method I looked to see what
you were talking about. I noted that "ps.options needs to be called
before calling postscript". ps.options does have pointsize within it and
silly though it may seem, its what I would do next.
_________________________________________________
Tom Mulholland
Senior Policy Officer
WA Country Health Service
189 Royal St, East Perth, WA, 6004
Tel: (08) 9222 4062
e-mail: Tom.Mulholland at health.wa.gov.au
The contents of this e-mail transmission are confidential and may be
protected by professional privilege. The contents are intended only for
the named recipients of this e-mail. If you are not the intended
recipient, you are hereby notified that any use, reproduction,
disclosure or distribution of the information contained in this e-mail
is prohibited. Please notify the sender immediately.
-----Original Message-----
From: drf5n at mug.sys.virginia.edu [mailto:drf5n at mug.sys.virginia.edu]
Sent: Friday, 11 July 2003 1:17 PM
To: R-help at stat.math.ethz.ch
Subject: [R] postscript/eps label clipping
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/
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
I guess I was wrong there. However it does seem that it will come down to fontsize 9 without clipping (or if it does I find it hard to see). -----Original Message----- From: Mulholland, Tom Sent: Friday, 11 July 2003 1:38 PM To: David Forrest; R-help at stat.math.ethz.ch Subject: RE: [R] postscript/eps label clipping Never having used postscript as an output method I looked to see what you were talking about. I noted that "ps.options needs to be called before calling postscript". ps.options does have pointsize within it and silly though it may seem, its what I would do next.
On Fri, 11 Jul 2003, Mulholland, Tom wrote:> I guess I was wrong there. However it does seem that it will come down > to fontsize 9 without clipping (or if it does I find it hard to see).Thanks. It seemed like that is the way it was working, but it also seems counterintuitive: reduced pointsizes in postscript output make the graphs bigger, up to a point, after which the letters are too big(small?) to fit without clipping. Thanks again, Dave. -- Dave Forrest (434)924-3954w(111B) (804)642-0662h (804)695-2026p drf5n at maplepark.com http://mug.sys.virginia.edu/~drf5n/