plot panel does not produce plots Rstudio

て烟熏妆下的殇ゞ 提交于 2019-12-13 02:27:17

问题


I am having trouble getting my graphs to appear in the 'plots' window of R studio - once I run the script they appear in a separate R graphics window, separate to R Studio, with the 'plots' tab blank. when i use

dev.off()

it gives the error

*error in dev.off(): cannot shut down device 1 (the null device)*

Even if i ran this command twice the error still there. I tried restart Rstudio- did not work


回答1:


You might try suppressing the output of dev.off()

Use-

temp <- dev.off()

Also refer similar thread

Suppressing "null device" output with R in batch mode



来源:https://stackoverflow.com/questions/37638803/plot-panel-does-not-produce-plots-rstudio

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