Display graphics in plots window pane rather than opening new window in RStudio

无人久伴 提交于 2019-12-19 12:37:34

问题


I googled this to no avail. I must have unknowingly changed some setting because now when I print a plot or histogram rather than displaying the plot in the plots window, a new window opens with the plot. The title of the new window reads "R Graphics: Device 2 (ACTIVE)".


回答1:


It is a problem that appeared with R 3.3.0 for some RStudio versions. You can check your version with version in RStudio. It should work with a RSudio 0.99.902.

For more details, check here.




回答2:


Some code you ran probably pushed a new graphics device onto the stack. You can turn it off with:

> dev.off()

See the R documentation for managing output devices.



来源:https://stackoverflow.com/questions/37258243/display-graphics-in-plots-window-pane-rather-than-opening-new-window-in-rstudio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!