Re: [R] minimizing device-dependent code in graphics scripts

2011-10-27 Thread Duncan Murdoch
On 27/10/2011 10:13 AM, Michael Friendly wrote: Here is a common scenario that I and probably others often face: - I write a script, test.R, to produce some graphs, viewing them on-screen and tinkering until they look right - I want to save image files (e.g., .png), so I wrap each plot in device

[R] minimizing device-dependent code in graphics scripts

2011-10-27 Thread Michael Friendly
Here is a common scenario that I and probably others often face: - I write a script, test.R, to produce some graphs, viewing them on-screen and tinkering until they look right - I want to save image files (e.g., .png), so I wrap each plot in device driver calls, e.g., png(file='test01.png', w