Re: [R] Newbie mistakes saving images to files

2010-01-14 Thread Rex C. Eastbourne
Thanks Jim! I followed the instructions in the FAQ and wrapped print() around my function calls. The images are now properly generated. Rex On Thu, Jan 14, 2010 at 4:38 PM, jim holtman wrote: > If you are using lattice, check out FAQ 7.22 > > On Thu, Jan 14, 2010 at 5:15 PM, Rex C. Eastbourne <

Re: [R] Newbie mistakes saving images to files

2010-01-14 Thread jim holtman
If you are using lattice, check out FAQ 7.22 On Thu, Jan 14, 2010 at 5:15 PM, Rex C. Eastbourne wrote: > I am encountering problems using the png() function to save around 20 > charts > to separate files. > > My script is conceptually structured as follows: > > ### > png("Image %03d.png") > > #

Re: [R] Newbie mistakes saving images to files

2010-01-14 Thread Henrik Bengtsson
?png says: "If you plot more than one page on one of these devices and do not include something like %d for the sequence number in file, the file will contain the last page plotted." meaning png("foo%03d.png", width=300, height=300); plot(1); plot(2); plot(3); dev.off(); generates foo001.png, f

[R] Newbie mistakes saving images to files

2010-01-14 Thread Rex C. Eastbourne
I am encountering problems using the png() function to save around 20 charts to separate files. My script is conceptually structured as follows: ### png("Image %03d.png") # the following are calls to user-defined functions I wrote that call plot, barchart, etc. with special arguments. myPlot("

Re: [R] Newbie mistakes saving images to files

2010-01-14 Thread Rex C. Eastbourne
On Thu, Jan 14, 2010 at 2:15 PM, Rex C. Eastbourne wrote: > I am encountering problems using the png() function to save around 20 > charts to separate files. > > My script is conceptually structured as follows: > > ### > png("Image %03d.png") > > # the following are calls to user-defined functio