0

Is there any way to get R plots to pop-up in a separate window outside of RGui?

x11() does this in RStudio but not in RGui.

Thanks

user3745597
  • 159
  • 1
  • 2
  • 9

1 Answers1

3

If you run a Cairo device from the cairoDevice package then the graph shows up in a separate window (at least my test on windows did).

If you run Rgui (on windows) in SDI mode instead of MDI mode then the standard graphics device will be a different window from the command line (but scripts, help, etc. will be as well).

The tkrplot package has tools for creating graphs in a separate Tk window.

You could send the graph to a file, then use shell.exec to open the viewer for the graphics file in a separate window.

There may be other ways as well.

Greg Snow
  • 48,497
  • 6
  • 83
  • 110