shahab
2011-Apr-03 12:02 UTC
[R] Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
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
John Kane
2011-Apr-03 12:44 UTC
[R] Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
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. >
Jim Lemon
2011-Apr-04 09:19 UTC
[R] Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
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
Jim Lemon
2011-Apr-05 12:17 UTC
[R] Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
Hi all, Just to let you know that the error was in the calculation (and the error message maybe peculiar to the original poster's system), not color2D.matplot. The message sent to the original poster was long and not very meaningful to those who didn't get the data and code (i.e. everybody except me). Jim