[R] pdf function, resize xyplot plot automatically

Patrick Connolly p_connolly at slingshot.co.nz
Thu Jun 3 12:30:04 CEST 2010


On Wed, 02-Jun-2010 at 02:34PM -0400, Afshartous, David wrote:

|> 
|> All,
|> 
|> When saving plots to a pdf file via the pdf function, I would like to be
|> able to automatically expand the graphics device to achieve the same result
|> as when one does this manually (e.g., clicking the green expand button on
|> the upper left of the graph on Mac OS).   Consider simple example below:

If it's a file you want to keep, it makes more sense IMHO to keep a
record of just what you did to get the size you want.  For that
reason, it's a better idea to set the width &/or height in the call to
pdf().  Peter Ehlers has told you how to use the 'width' argument.

For interactive use, the normal X11 window can be resized in the way
you would probably like.  I quite like the way R offers you two quite
different ways of doing such things.

[...]

HTH

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.



More information about the R-help mailing list