[R] size of graphics device
Duncan Temple Lang
duncan at research.bell-labs.com
Wed Nov 19 16:54:34 CET 2003
FWIW, there is a way to have one or more scrolled graphics devices
using the RGtk (www.omegahat.org/RGtk) and gtkDevice (from CRAN)
packages. This currently works only on Unix/Linux.
The following code creates a window with a graphics device inside a
scrolled window inside a top-level Gtk window.
win = gtkWindow(show = FALSE)
sw = gtkScrolledWindow()
scrolledDevice <- gtkDrawingArea()
scrolledDevice$SetUsize(5000, 5000) # pixels
win$SetUsize(800, 700) # pixels
asGtkDevice(scrolledDevice) # (from gtkDevice)
Now you are ready to plot.
> Dear all,
> In many cases, I need a plotting region much bigger than the screen (e.g. for maps or for graphs with many labels).
> A. MS-Windows
> if I try
> windows(width=25, height=25, rescale="fixed")
> it seems to be OK (a screen with scrollbars, exactly what I need)
> but if I try then
> plot(faithful$eruptions, faithful$waiting)
> I receive
> Error in plot.new() : Outer margins too large (fig.region too small)
> B. Linux
> I try
> X11(width=25, height=25)
> (and the same)
> No Error message, but no scrollbars !!
> Is there a solution ?
> with many thanks in advance
> Alain Guerreau directeur de recherche au CNRS Paris
> alain.guerreau at libertysurf.fr
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
Duncan Temple Lang duncan at research.bell-labs.com
Bell Labs, Lucent Technologies office: (908)582-3217
700 Mountain Avenue, Room 2C-259 fax: (908)582-3340
Murray Hill, NJ 07974-2070
More information about the R-help