[R] pretended size postscript and size of the graphic device window

Gavin Simpson gavin.simpson at ucl.ac.uk
Thu Jan 4 13:19:36 CET 2007

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, 
plot(rnorm(100), rnorm(100), main = "foo")

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.



> 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

More information about the R-help mailing list