mirca heli
2007-Jan-04 11:21 UTC
[R] pretended size postscript and size of the graphic device window
Dear list members! I've two questions concerning graphic export: a) I want to export my graphics as PostScript files. in this way I use the postscript() function. The tricky part is that they must have a pretended size (7 x 7 cm) and an absoulte font size (10pt). b) how can i (permanent) change the size of the graphic device window? Best regards mirca heli --
Gavin Simpson
2007-Jan-04 12:19 UTC
[R] pretended size postscript and size of the graphic device window
On Thu, 2007-01-04 at 12:21 +0100, mirca heli wrote:> Dear list members! > > I've two questions concerning graphic export: > > a) I want to export my graphics as PostScript files. in this way I use > the postscript() function. The tricky part is that they must have a > pretended size (7 x 7 cm) and an absoulte font size (10pt).If I understand you correctly, ?postscript contains all you need to know, eg: postscript(file="foo.eps", paper="special", onefile=FALSE, width=7/2.54, height=7/2.54, pointsize=10, horizontal=FALSE) plot(rnorm(100), rnorm(100), main = "foo") dev.off() Is this what you wanted?> b) how can i (permanent) change the size of the graphic device window?This may well depend on your OS (unstated). I was looking for this the other day as the window is too big on my laptop - I didn't look to hard though so it is no surprise that I did not find a solution. HTH G> > Best regards > mirca heli-- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Uwe Ligges
2007-Jan-04 12:23 UTC
[R] pretended size postscript and size of the graphic device window
mirca heli wrote:> Dear list members! > > I've two questions concerning graphic export: > > a) I want to export my graphics as PostScript files. in this way I use the postscript() function. The tricky part is that they must have a pretended size (7 x 7 cm) and an absoulte font size (10pt).See ?postscript and its arguments width, height, paper and pointsize.> b) how can i (permanent) change the size of the graphic device window?For the postscript device, see ?ps.options. Uwe Ligges> Best regards > mirca heli > -- > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Duncan Murdoch
2007-Jan-04 13:31 UTC
[R] pretended size postscript and size of the graphic device window
On 1/4/2007 6:21 AM, mirca heli wrote:> Dear list members! > > I've two questions concerning graphic export: > > a) I want to export my graphics as PostScript files. in this way I use the postscript() function. The tricky part is that they must have a pretended size (7 x 7 cm) and an absoulte font size (10pt).> b) how can i (permanent) change the size of the graphic device window?Most of the graphics device functions take args to set their size. You can create your own function and use it instead of the standard one, with different defaults: e.g. mywin <- function() windows(2,2) options(device="mywin") Now I'll get really tiny windows. You can put these lines in your .Rprofile (see ?Startup) if you want them to happen in all sessions. Duncan Murdoch