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

From: Duncan Murdoch <>
Date: Thu 04 Jan 2007 - 13:31:44 GMT

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)

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 mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri Jan 05 01:21:02 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 Jan 2007 - 15:30:29 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.