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.
library(RGtk)
library(gtkDevice)
win = gtkWindow(show = FALSE)
sw = gtkScrolledWindow()
scrolledDevice <- gtkDrawingArea()
scrolledDevice$SetUsize(5000, 5000) # pixels
sw$AddWithViewport(scrolledDevice)
win$Add(sw)
win$SetUsize(800, 700) # pixels
win$Show()
asGtkDevice(scrolledDevice) # (from gtkDevice)
Now you are ready to plot.
plot(rnorm(10000))
D.
guerreau wrote:> 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
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
_______________________________________________________________
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
http://cm.bell-labs.com/stat/duncan