Message-ID: <4288A86B.8000402@lancaster.ac.uk>
Date: 2005-05-16T14:04:27Z
From: Barry Rowlingson
Subject: get plot in a window when running R in the shell
In-Reply-To: <8d5a36350505160647599816e3@mail.gmail.com>
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