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<-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
> ______________________________________________
> 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.