Re: [R] R graphics with Linux (libpng)

2007-01-16 Thread Rebecca Tagett
Prof Brian Ripley ripley at stats.ox.ac.uk writes: On Thu, 11 Jan 2007, Rebecca Tagett wrote: Hello, I'm trying to adapt some R code that works on Windows so that it will work on a Linux machine. The command : png(myFile.png, width=600, height=600) fails claiming that it

[R] R graphics with Linux (libpng)

2007-01-11 Thread Rebecca Tagett
Hello, I'm trying to adapt some R code that works on Windows so that it will work on a Linux machine. The command : png(myFile.png, width=600, height=600) fails claiming that it is impossible to establish a connection with X11. (Error messages are in French, so I'm not pasting them here!)

Re: [R] R graphics with Linux (libpng)

2007-01-11 Thread Benilton Carvalho
I forgot to mention that bitmap() will do what you want without an X11 connection. b On Jan 11, 2007, at 1:09 PM, Rebecca Tagett wrote: Hello, I'm trying to adapt some R code that works on Windows so that it will work on a Linux machine. The command : png(myFile.png, width=600,

Re: [R] R graphics with Linux (libpng)

2007-01-11 Thread Benilton Carvalho
Hi Rebecca, png (and also jpeg, for example) require an X11 connection. So, assuming you're working from the command line and that your X11 server is up, you would need to do something like: linux$ export DISPLAY=:0.0 before loading R... and if your linux machine is remote (and you're

Re: [R] R graphics with Linux (libpng)

2007-01-11 Thread Prof Brian Ripley
On Thu, 11 Jan 2007, Rebecca Tagett wrote: Hello, I'm trying to adapt some R code that works on Windows so that it will work on a Linux machine. The command : png(myFile.png, width=600, height=600) fails claiming that it is impossible to establish a connection with X11. (Error messages