Skip to content
Back to formatted view

Raw Message

Message-ID: <20090313111604.GB6364@localhost>
Date: 2009-03-13T11:16:04Z
From: Philipp Pagel
Subject: Plots not loading
In-Reply-To: <756839.58062.qm@web32704.mail.mud.yahoo.com>

On Thu, Mar 12, 2009 at 01:25:40PM -0700, Atul Joshi wrote:
> When I run my .r script using source (myfilename) from console the plots appear.
> 
> However, when I execute the same file via terminal command line using R CMD BATCH myfilename, the plots do not appear.
> 
> I am working with Mac.
> 
> Am I doing something wrong?

In BATCH mode it does not make much sense to display plots on the
screen because the script may be running on a system without screen
(cluster). So R uses a different default device. On my LINUX
system it's pdf, so all my plots go to Rplots.pdf unless I explicitly
send them somewhere else. I don't know about the defaults on Macs but
you should be able to find the file in the current directory easily.

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl f?r Genomorientierte Bioinformatik
Technische Universit?t M?nchen
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel