Switch to an existing plot device, or if not already open,
launch a new graphics device based on operating system used.
On Windows and macOS, if x
is not provided, this will open or switch to the first
non-RStudio device, which is much faster than the png
-based RStudio plot device.
Currently, this will not open anything new.