无法在Rstudio图形查看器中显示图。 [英] Unable to get plots displayed in Rstudio graphical viewer.

查看:2734
本文介绍了无法在Rstudio图形查看器中显示图。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我的代码时,我的所有图形(包括ggplot2和plot)都显示在外部的Quartz 2 [*]图形查看器中。



我希望将它们显示在R studio GUI绘图区中,以便我可以更好地保存和查看我的文件以及以前的版本。

反正有阻止这个的吗?

我最近更新了我的R版本,以及我的Mac上的X11和xQuartz(也是最新的),我猜这些更新是在它后面的。



我见过很多论坛,解释如何让rstudio导出到外部查看器(例如quartz()),但不是其他方式。



我看了,但这些线程并没有帮助:



dev.off()即使隐藏 hide< - dev.off()也不起作用。



任何帮助都会很棒,
谢谢。

解决方案

看起来我忘了重新安装Rstudio了。

When I run my code all my graphs (both ggplot2 and plot) are displayed in an external "Quartz 2 [*]" graphical viewer.

I would like them to be displayed in the R studio GUI plot area to I can better save and view my files, along with the previous versions.

Is there anyway to stop this?

I recently updated my version of R, along with the X11 and xQuartz on my mac (also up to date), and I am guessing these updates are behind it.

I have seen many forums explaining how to get rstudio to export to an external viewer (e.g. "quartz()"), but not the other way.

I have looked, but these threads have not helped:

dev.off() even when hidden hide <- dev.off() is not working either.

Any help would be great, Thanks.

解决方案

Looks like I forgot to reinstall Rstudio as well.. That sorted my problem.

这篇关于无法在Rstudio图形查看器中显示图。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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