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.mok...@gmail.com> wrote: > From: shahab <shahab.mok...@gmail.com> > Subject: [R] Error in "color2D.matplot" : "Error in plot.new() : figure > margins too large" > To: r-help@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@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. > ______________________________________________ R-help@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.