使用Rstudio的plot函数绘制图形出现了错误:
Error in plot.new() : figure margins too large
解决方法:
首先使用代码
par("mar")
检查mar参数,多半会得到这个结果
[1] 5.1 4.1 4.1 2.1
重置这个参数
par(mar=c(1,1,1,1))
然后问题就解决了
使用Rstudio的plot函数绘制图形出现了错误:
Error in plot.new() : figure margins too large
解决方法:
首先使用代码
par("mar")
检查mar参数,多半会得到这个结果
[1] 5.1 4.1 4.1 2.1
重置这个参数
par(mar=c(1,1,1,1))
然后问题就解决了