Plots not loading
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