Re: [R] how to control to save plots to which dev

2011-08-05 Thread zhenjiang xu
Yes, but I thought the parameter to dev.set() should only be the value returned by dev.next()/dev.prev(). So I read the help page again. It's a little embarrassing - I missed the sentence "Devices are associated with ... a number in the range 1 to 63". I should have read the help page more carefull

Re: [R] how to control to save plots to which dev

2011-08-05 Thread Duncan Murdoch
On 05/08/2011 11:49 AM, zhenjiang xu wrote: Thanks, Prof Ripley. I was using dev.next(), dev.prev(),, but I am wondering, instead of switching the current dev, is there a way to more directly print plot A into file connection A, plot B into file connection B...? Because if coding with more then t

Re: [R] how to control to save plots to which dev

2011-08-05 Thread zhenjiang xu
Thanks, Prof Ripley. I was using dev.next(), dev.prev(),, but I am wondering, instead of switching the current dev, is there a way to more directly print plot A into file connection A, plot B into file connection B...? Because if coding with more then two dev simultaniously, one could easily get co

Re: [R] how to control to save plots to which dev

2011-08-01 Thread Prof Brian Ripley
On Tue, 2 Aug 2011, David Winsemius wrote: On Aug 1, 2011, at 11:14 PM, zhenjiang xu wrote: Hi, I have a for loop to make 2 types of plots and I'd like to save one type of plots to a pdf file and the other to another pdf file. How can I control which plot will be saved to which pdf? Thanks

Re: [R] how to control to save plots to which dev

2011-08-01 Thread David Winsemius
On Aug 1, 2011, at 11:14 PM, zhenjiang xu wrote: Hi, I have a for loop to make 2 types of plots and I'd like to save one type of plots to a pdf file and the other to another pdf file. How can I control which plot will be saved to which pdf? Thanks Why not give them file names that identify t

Re: [R] how to control to save plots to which dev

2011-08-01 Thread Jeff Newmiller
Simplest to make two consecutive loops. --- Jeff Newmiller The . . Go Live... DCN: Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Co