简体   繁体   中英

Getting R Plots into a Separate Non-R Window

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM