Re: [Rd] opening graphics device with a given number

2010-11-13 Thread Petr Savicky
On Sat, Nov 13, 2010 at 05:09:56AM -0800, Henrik Bengtsson wrote: > See devSet() in R.utils, e.g. > > > library("R.utils"); > > graphics.off(); > > devSet(6); > > devSet("myFigure"); # Also possible > > print(devList()); > myFigure Device 6 >26 The function devSet() works fine an

Re: [Rd] opening graphics device with a given number

2010-11-13 Thread Henrik Bengtsson
See devSet() in R.utils, e.g. > library("R.utils"); > graphics.off(); > devSet(6); > devSet("myFigure"); # Also possible > print(devList()); myFigure Device 6 26 > /Henrik On Sat, Nov 13, 2010 at 2:44 AM, Petr Savicky wrote: > I am preparing a script, which uses three graphical

[Rd] opening graphics device with a given number

2010-11-13 Thread Petr Savicky
I am preparing a script, which uses three graphical windows for different types of plots. Before each plot, the device can be chosen by dev.set(k) for k = 2, 3, 4. The function dev.set(k) does not create the required device, if it is not opened already. So, instead, i use dev.add(k) defined as d