[R-sig-Geo] question about image function

2013-03-05 Thread Hodgess, Erin
Hello again! I'm running into a problem with the image function within a loop. When I put it to the screen, it works fine, but when I put it to a PNG file, the picture doesn't change. Here is the code: for(i in 1:11) { j1 - (i-1)*n2 + 1 j2 - i*n2 predx -

Re: [R-sig-Geo] question about image function

2013-03-05 Thread Michael Sumner
I don't see filename defined, or any packages required. Is it the png files that are a problem or the 'kmlsetup' output? (whatever that is) See the animation package for extremely simplifed image frame creation btw On Wednesday, March 6, 2013, Hodgess, Erin wrote: Hello again! I'm running

Re: [R-sig-Geo] question about image function

2013-03-05 Thread Clint Bowman
When using png in a loop, especially one where the loop index is an integer, I usually make use of the %02d in the file name, e.g., png(pred_%02d_a.png,...) Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu

Re: [R-sig-Geo] question about image function

2013-03-05 Thread Hodgess, Erin
It's the png file. It seems to be writing the first data set over and over to the various png files. From: Michael Sumner [mdsum...@gmail.com] Sent: Tuesday, March 05, 2013 2:41 PM To: Hodgess, Erin Cc: r-sig-geo@r-project.org Subject: Re: [R-sig-Geo] question

Re: [R-sig-Geo] question about image function

2013-03-05 Thread Hodgess, Erin
That was it...thanks so much! From: Clint Bowman [cl...@ecy.wa.gov] Sent: Tuesday, March 05, 2013 2:46 PM To: Michael Sumner Cc: Hodgess, Erin; r-sig-geo@r-project.org Subject: Re: [R-sig-Geo] question about image function When using png in a loop