wxfei19 curve(cos(x)-2*x,-10,10) abline(h=0,lty=2) 在RStudio里面提示Error in plot.new() : figure margins too large 在RGui里面没有问题 RStudio需要进行什么设置么??
zggjtsgzczh 回复 第1楼 的 wxfei19: 测试了一下代码,在RStudio中没有问题。不知道你是不是修改了par()的参数。 或许你可以使用下述代码测试,看是否还有问题: <br /> win.graph(width=4.875, height=2.5,pointsize=8)<br /> curve(cos(x)-2*x,-10,10)<br /> abline(h=0,lty=2)<br /> </p> 测试平台为win,Rstudio V.0.97.336,R 3.0.0
hudongsheng1982 win.graph(width=4.875, height=2.5,pointsize=8) curve(cos(x)-2*x,-10,10) abline(h=0,lty=2)
mldlx Do you already have a plotting window open (or are you using RStudio)? If so just make the plotting region larger. by“http://www.talkstats.com/showthread.php/46981-Error-in-plot.new()-figure-margins-too-large”
lattice_plot 回复 第2楼 的 zggjtsgzczh:我又一次出现这种情况了:在RStudio上运行出现“Error in plot.new() : figure margins too large”,但是将代码放进RGui运行又正常,我想是曾经某个时刻将par参数改变了而完了没有及时恢复,该怎么办??