[R] Variable in file name png

Aaron Coutino aa_coutino at hotmail.com
Wed Jun 8 16:11:23 CEST 2011


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 each with respect to the two variables rc and psi.
I want the names to change for each graph, but am not sure how to do it, any help would be apreciated.
Thanks,
-Acoutino


More information about the R-help mailing list