Re: [R] How to pop up the graphics window from Rscript?

2009-09-06 Thread Peng Yu
I get the following error. $ Rscript plot.R x=1:10 y=1:10 windows() Error: could not find function windows Execution halted On Sun, Sep 6, 2009 at 11:59 AM, RIOS,ALFREDO ARTUROar...@ufl.edu wrote: maybe windows() On Sun Sep 06 12:53:14 EDT 2009, Peng Yu pengyu...@gmail.com wrote: Hi,

Re: [R] How to pop up the graphics window from Rscript?

2009-09-06 Thread David Winsemius
Perhaps you should read the Posting Guide (again?) and then adopt a consistent practice of including system information in your questions to r-help. Not everyone keeps a mental list of what OS you are using. Graphics commands are highly OS specific. capabilities() # at an interactive R

Re: [R] How to pop up the graphics window from Rscript?

2009-09-06 Thread Gabor Grothendieck
Try this (contents of plot.R): png(mygraphic.png) plot(1:10) dev.off() browseURL(mygraphic.png) It will pop up the graphic in a browser window. On Sun, Sep 6, 2009 at 12:53 PM, Peng Yupengyu...@gmail.com wrote: Hi, I am wondering how to pop up the graphics window from Rscript. I run the

Re: [R] How to pop up the graphics window from Rscript?

2009-09-06 Thread RIOS,ALFREDO ARTURO
maybe windows() On Sun Sep 06 12:53:14 EDT 2009, Peng Yu pengyu...@gmail.com wrote: Hi, I am wondering how to pop up the graphics window from Rscript. I run the following code, but I don't see the graphics window, even transiently. Regards, Peng $ Rscript plot.R x=1:10 y=1:10

[R] How to pop up the graphics window from Rscript?

2009-09-06 Thread Peng Yu
Hi, I am wondering how to pop up the graphics window from Rscript. I run the following code, but I don't see the graphics window, even transiently. Regards, Peng $ Rscript plot.R x=1:10 y=1:10 plot(x,y) __ R-help@r-project.org mailing list

Re: [R] How to pop up the graphics window from Rscript?

2009-09-06 Thread David Winsemius
On Sep 6, 2009, at 1:42 PM, Gabor Grothendieck wrote: Try this (contents of plot.R): png(mygraphic.png) plot(1:10) dev.off() browseURL(mygraphic.png) It will pop up the graphic in a browser window. On a Mac that shows up in a Preview window. The X11() device does open a plot on a Mac