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

______________________________________________
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.

Reply via email to