[R] "figure margins too large" in RGtk2 drawing area as cairo device - why?

Mark Heckmann mark.heckmann at gmx.de
Thu Mar 8 20:27:47 CET 2012


When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large" 
Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case.

> win = gtkWindow()
> da = gtkDrawingArea()
> win$add(da)
> asCairoDevice(da)
[1] TRUE
> plot(1:10)   
Fehler in plot.new() : Grafikränder zu groß
> 

Also enlarging the drawing area does not help.

> win = gtkWindow()
> da = gtkDrawingArea()
> win$add(da)
> asCairoDevice(da)
[1] TRUE
> da$setSizeRequest(700, 700)
> plot(1:10)   
Fehler in plot.new() : Grafikränder zu groß

Any ideas?
Thanks in advance.
--Mark

PS. My system:

R version 2.14.1 (2011-12-22)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
MacOS 10.6



––––––––––––––––––––––––––––––––––––
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com



More information about the R-help mailing list