figure.RdOpen, activate, and close grahics devices.
figure(figno, title = "")The number of a graphics device cannot be 0 or 1. The function will work for the operating systems Mac OS, MS Windows, and most Linux systems.
If figno is negative and a graphics device with that number does
exist, it will be closed.
No return value, except when a device of that number does not exist, in which case it returns a list of numbers of open graphics devices.
Does not bring the activated graphics device in front.
dev.set, dev.off, dev.list
if (FALSE) { # \dontrun{
figure()
figure(-2)
} # }