Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Multiple Devices

At any one time, any number of graphics devices may be present, but only one is active. To list all open devices use dev.list. To identify the active device use dev.cur, and to make a device current use dev.set. The functions dev.next and dev.prev makes the next or previous device active.



> plot(iris$Sepal.Length)
> x11()
> plot(iris$Sepal.Width)
> dev.list()
X11 X11
  2   3
> dev.cur()
X11
  3
> dev.set(2)
X11
  2
> dev.cur()
X11
  2

This allows two plots to be displayed separately.



Copyright © 2004-2006 Graham.Williams@togaware.com
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.