Skip to content
Prev 69795 / 398525 Next

get plot in a window when running R in the shell

bogdan romocea wrote:

            
You could explicitly startup an X11 graphics device before your first 
plot in your R source code, something like:

  x11()
  hist(runif(100))

Works for me, although the window will disappear very quickly unless the 
script pauses before ending!

Baz