Hi, I am using color2D.matplot (...) function of "plotrix" package. I used a matrix of size around 20*20 However, apparently it failed to visualize the matrix and gave the following exception, which I don't have any idea about possible source of this error. "Error in plot.new() : figure margins too large" It would be appreciated if someone points me to the right origin of this error. best, /Shahab
Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
3 messages · shahab, John Kane, Jim Lemon
Totally guessing but did you make an earlier call to par() to adjust margins? Otherwise you may want to supply the matrix here for other people to experiment with. See ?dput as probably the best way to do this.
--- On Sun, 4/3/11, shahab <shahab.mokari at gmail.com> wrote:
From: shahab <shahab.mokari at gmail.com> Subject: [R] Error in "color2D.matplot" : "Error in plot.new() : figure margins too large" To: r-help at r-project.org Received: Sunday, April 3, 2011, 8:02 AM Hi, I am using color2D.matplot (...) function of "plotrix" package. I used a matrix of size? around 20*20 However, apparently it failed to visualize the matrix and gave the following exception, which I don't have any idea about possible source of this error. "Error in plot.new() : figure margins too large" It would be appreciated if someone points me to the right origin of this error. best, /Shahab
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
On 04/03/2011 10:02 PM, shahab wrote:
Hi, I am using color2D.matplot (...) function of "plotrix" package. I used a matrix of size around 20*20 However, apparently it failed to visualize the matrix and gave the following exception, which I don't have any idea about possible source of this error. "Error in plot.new() : figure margins too large" It would be appreciated if someone points me to the right origin of this error.
Hi Shahab, If you could send me the data you used (real or fake, as long as it produces the error), I'll try to work out what has happened. Jim