[R] fighting with ps.options and xlim/ylim

Duncan Murdoch dmurdoch at pair.com
Wed Jun 9 04:02:45 CEST 2004


On Tue, 08 Jun 2004 21:18:34 -0400, ivo welch <ivo.welch at yale.edu>
wrote:
> And once I 
>do this, I need different R parameter defaults on the axes.  With the 
>advice I have gotten, I think I am all set now.  However, I am a little 
>bit surprised that noone has written a package around this task---there 
>must be many people that have to produce quarter-page (or half-page) 
>graphics, and probably everyone is tweaking plot parameters a bit 
>differently. 

My general strategy for this is to change the width and height used in
the pdf() or postscript() device call, then just trust the defaults
chosen by R.  For inclusion in a paper, I generally specify sizes
about twice as big as I really want, and get text size similar to the
printed text.  So in your case, assuming a page is around 6 inches
wide, I'd use something like

pdf(width=3, height=3, ...)

and then get LaTeX to shrink it to half the size.

Duncan Murdoch




More information about the R-help mailing list