[R] Error in plot.new() : figure margins too large

Sonny s_case at hotmail.com
Thu Sep 27 12:58:51 CEST 2012


Dear Karly,
   I don't know if you've resolved your problem but I just came across the
same thing in RStudio and I think I've found out what the problem is. The
problem seems to occur when the plot viewing panel (by default in the bottom
right) is very small. The plot function tries to create a plot within the
physical space of the plot panel. If the plot panel is tiny, then the
default margins of the plot may be larger than the graph/graphic itself. It
is then you get the error.

The simple solution is just to increase the size of the plot area in Rstudio
and then try to run the code again. The plot should be created no problem.

If you are still getting the issue despite doing this, let me know and I'll
try and look a bit deeper into the problem!

Sean



--
View this message in context: http://r.789695.n4.nabble.com/Error-in-plot-new-figure-margins-too-large-tp4635651p4644364.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list