Re: [R] get plot in a window when running R in the shell

From: Barry Rowlingson <B.Rowlingson_at_lancaster.ac.uk>
Date: Tue 17 May 2005 - 00:04:27 EST

bogdan romocea wrote:

> however I want the plots to appear in a window (as it happens when the
> code is run interactively) instead of being saved in 'Rplots.ps'. Is
> that doable?

  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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 17 00:22:19 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:46 EST