情节面板不生成情节Rstudio [英] plot panel does not produce plots Rstudio

查看:270
本文介绍了情节面板不生成情节Rstudio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难让图形显示在R studio的图形"窗口中-一旦运行脚本,它们就会出现在与R Studio分开的单独的R图形窗口中,图形"选项卡为空白. 当我使用

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()

dev.off()

它给出了错误

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

即使我两次运行此命令,错误仍然存​​在.我尝试重新启动Rstudio-无法正常工作

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

推荐答案

您可以尝试隐藏dev.off()的输出

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

使用-

temp<-dev.off()

temp <- dev.off()

也可以引用类似的线程

以批处理模式用R输出

这篇关于情节面板不生成情节Rstudio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆