Re: [R] size of graphics device

2003-11-19 Thread Duncan Temple Lang
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(1))


 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
> [EMAIL PROTECTED]
> 
> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

-- 
___

Duncan Temple Lang[EMAIL PROTECTED]
Bell Labs, Lucent Technologiesoffice: (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

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] size of graphics device

2003-11-19 Thread guerreau
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
[EMAIL PROTECTED]



[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] size of graphics device

2003-07-10 Thread guerreau
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).

if I try
windows(width=15, height=15, 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)

Is there a solution ?

with many thanks in advance

Alain Guerreau   directeur de recherche au CNRS  Paris


[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help