在RStudio中清晰的背景使得情节设备做了奇怪的事情

时间:2016-06-29 15:00:22

标签: r plot rstudio

我正在绘制情节,将它们放在演示文稿中。但我需要一个透明的背景来适应我在演示文稿中使用的颜色。所以我决定在R中使用par()函数:

dev.off()
par(mfrow=c(1,2),bg = NA)
plot(1:10,main = "This is the first plot yo")
plot(100:1000, main = "What is going on?")

不幸的是,我在设备中的情节(在RStudio中)看起来像这样: enter image description here

问题在于,当我导出它或使用绘图缩放功能时,它正在工作。 enter image description here

什么可能导致设备在RStudio中严重打印图形? 我可以使用另一个功能,以便它不会产生那种奇怪的效果吗?

版本RStudio:0.99.902

platform       x86_64-apple-darwin13.4.0   
arch           x86_64                      
os             darwin13.4.0                
system         x86_64, darwin13.4.0        
status                                     
major          3                           
minor          3.0                         
svn rev        70573                       
language       R                           
version.string R version 3.3.0 (2016-05-03)
nickname       Supposedly Educational

0 个答案:

没有答案
相关问题