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 plot.new() : figure margins too large
> plot(c(1:10), ylab="Gamma",xlab="Iteration")
Error in plot.new() : figure margins too large
> dev.off()
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!
width
andheight
are on apng
device is clearly stated in?png
– Gavin Simpson Dec 10 '10 at 15:54png()
we know the problem lies withpng()
. If removingpng()
makes no difference then we've narrowed the scope of the problem down. There shouldn't be any real need for flailing around reading multiple help files etc for things like this, if you adopt a logical approach to working through the problem, isolate where the problem is and then read the relevant help file. Are you disagreeing about the need to read the help or something else? – Gavin Simpson Jul 28 '11 at 7:40