本文介绍了RStudio 突然停止在绘图窗格中显示绘图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RStudio 不再在绘图窗格中显示生成的绘图.相反,它们在名为Quartz"的单独文件中打开.这是我的会话信息.:

RStudio is not showing the generated plots in the plot pane anymore. Instead they open in a separate file with the name "Quartz". Here's my session info.:

> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.9.5 (Mavericks)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] cluster_2.0.4 tm_0.6-2      NLP_0.1-9     ggplot2_2.1.0

loaded via a namespace (and not attached):
 [1] colorspace_1.2-6 scales_0.4.0     plyr_1.8.4       parallel_3.3.1   tools_3.3.1      gtable_0.2.0     Rcpp_0.12.5      slam_0.1-35     
 [9] grid_3.3.1       munsell_0.4.3   

我尝试过工具 >全局选项 >窗格 >地块被选中.

I tried tools > global options > panes > plots is selected.

我不知道还有什么信息要分享.我可以看到带有plots"的绘图窗格.选项卡处于活动状态.但它是空白的.

I don't know what other info to share. I can see the plot pane with "plots" tab active. But it's blank.

屏幕:

注意带有Quartz"的新菜单;出现.不确定这是什么,但是当 R 生成绘图并且通常的 RStudio 菜单消失时它会出现.

Notice the new menu with "Quartz" appear. Not sure what this is, but it comes up when R generates the plot and the usual RStudio menu disappears.

如何让 RStudio 在绘图窗格中显示绘图?

How do I get RStudio to display plots in the plots pane?

推荐答案

尝试运行:

dev.off()

检查它是否有效:

plot(rnorm(50), rnorm(50))

这篇关于RStudio 突然停止在绘图窗格中显示绘图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 20:31