par(mfrow=c(1,2)) > plot(c(1:10...">

"Error in : figure margins too large"

In R, I met a running error as follows: > png("p3_sa_para.png", 4, 2) > par(mfrow=c(1,2)) > plot(c(1:10), ylab="Beta",xlab="Iteration") Error in : figure margins too large > plot(c(1:10), ylab="Gamma",xlab="Iteration") Error in : figure margins too large > X11cairo 2 I have already made the image size small to be 4 by 2, why it still complains "figure margins too large"? How can I solve this problem with png? It is strange that if I change png to pdf, then it will work. I also wonder why? Thanks and regards!
you would save yourself a lot of hassle if you read the help for the R functions you are using. What width and height are on a png device is clearly stated in ?png

以上就是"Error in : figure margins too large"的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准