Skip to content
Back to formatted view

Raw Message

Message-ID: <8F6EEAB6-70EF-4ADC-BF6F-8671E6E7C3A1@comcast.net>
Date: 2010-01-27T01:47:29Z
From: David Winsemius
Subject: Problem with xyplot when creating a .png graphic
In-Reply-To: <4B5F89F3.8070905@sci.monash.edu.au>

On Jan 26, 2010, at 7:33 PM, Harald Hofmann wrote:

> Hello,
> I have the following problem. I have created a couple of scripts to  
> create .png graphic files from data plots, using the xyplot  
> (lattice) command. When I refere to the script with source(""), the  
> script will be red but there is no output file. The scripts work  
> well with the regular plot command and produce a nice PNG file.
> On the other hand if I entre the single commands
> png("file", width= , height=, etc)
>
> xyplot(x,y)
>
> dev.off()
>
> The file gets created. It just doesn't work from a source file,  
> which puzzles me a bit.

Read all the FAQ but especially these two:

http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-is-the-output-not-printed-when-I-source_0028_0029-a-file_003f

http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f


>
> I am using R 2.10.1 64bit on a MacbookPro
>
> Thanks for your help
>
> Harald
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.