tags:

views:

80

answers:

1

Hi All,

I'm having small problem with the size of the graphical device when running R on ubuntu netbook. Netbook's screen size is relatively small (1024 x 576), so when I create a chart in R say simply

plot(sin)

The graph is bigger than my screen size. I have to manually resize it.

Solution posted on ubuntu forum doesn't work for some reason. Does anyone know how to fix it?

Thanks!

+10  A: 

I don't use Ubuntu anymore, but I think the best solution is to put something like this in your .Rprofile file.

setHook(packageEvent("grDevices", "onLoad"),
   function(...) grDevices::X11.options(width = 4, height = 4, pointsize = 8)
)

For ref., on my Mac, I have:

setHook(packageEvent("grDevices", "onLoad"),
        function(...) grDevices::quartz.options(dpi = 72))
apeescape
This works great! Thank you!
ilya
+1 Great tip! Although I don't have the same problem as @ilya I think this may be very useful also for other things :)
nico