R-studio出现Error in plot.new() : figure margins too large



 ''' r
set.seed(20)
x<- rnorm(100)
e<- rnorm(100,0,2)
y<- 0.5 + 2*x + e
summary(y)
plot(x,y)
'''

如上代码,window系统R-studio(Version 0.98.507)出现
Error in plot.new() : figure margins too large的错误提示。如图:  figure margins too large

但是,在R程序上运行这段代码时,能够正常绘图:
请输入图片描述

r

cotton 10 years, 11 months ago

有时候编译器会出问题,重启试试,我这里是完全可以显示的。。。

淡定的蛋痛 answered 10 years, 9 months ago

Your Answer