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

From: Gavin Simpson <gavin.simpson_at_ucl.ac.uk>
Date: Thu 04 Jan 2007 - 12:19:36 GMT

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
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

______________________________________________
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:51:57 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.