Re: [R] Variable in file name png

2011-06-09 Thread Uwe Ligges
On 08.06.2011 16:11, Aaron Coutino wrote: Hi, I'm having trouble with getting the png function to properly produce multiple graphs. RIght now I have: for (z in data) { you probably meant for(z in seq_along(data)) and the rest should be fine. Uwe Ligges png(file=z,bg="white") thisdf

[R] Variable in file name png

2011-06-08 Thread Aaron Coutino
Hi, I'm having trouble with getting the png function to properly produce multiple graphs. RIght now I have: for (z in data) { png(file=z,bg="white") thisdf<-data[[z]] plot(thisdf$rc,thisdf$psi) dev.off() } Which should take the "data" object, a list of data sets and produce a graph of eac