Coerce rstudio to output plots in a new window

Update: It is easier. Credit: John K. Kruschke

PC:

windows()

 

Mac:

quartz()

* Powered by XQuartz (dmg). X11() on Mac does not support BetterTouchTool.

Linux:

X11()

==The following is obsolete==
The trick is to use Rcmdr to create the new diagram window.
library(Rcmdr);plot(1,type='n');
Then the following plots by r codes in rstudio will be coerced to output in the new window.
Both rstudio for Mac and for Windows support the trick.