【问题标题】:plot panel does not produce plots Rstudio绘图面板不生成绘图 Rstudio
【发布时间】:2016-10-04 23:05:03
【问题描述】:

我无法让我的图表出现在 R Studio 的“绘图”窗口中 - 一旦我运行脚本,它们就会出现在与 R Studio 分开的单独 R 图形窗口中,并且“绘图”选项卡为空白。 当我使用

dev.off()

它给出了错误

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

即使我运行此命令两次,错误仍然存​​在。我试过重启 Rstudio- 没用

【问题讨论】:

  • dev.list() 给出 NULL
  • print(plot(y,x) 生成绘图但在弹出窗口中,而不是在 Rstudio 内

标签: plot panel rstudio


【解决方案1】:

您可以尝试抑制 dev.off() 的输出

使用-

临时

也可以参考类似的帖子

Suppressing "null device" output with R in batch mode

【讨论】:

  • 不,不起作用。情节仍然出现在弹出窗口中
猜你喜欢
  • 2014-11-28
  • 1970-01-01
  • 2016-05-21
  • 1970-01-01
  • 2012-11-27
  • 1970-01-01
  • 2015-12-17
  • 2011-07-27
  • 1970-01-01
相关资源
最近更新 更多