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

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
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)
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



R-help@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. 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.