[R] qplot and for loops

wwreith reith_william at bah.com
Thu Jul 14 04:07:49 CEST 2011

I just wanted the post the results of the emails I been sending/getting. The
following command will create the graphs and save them to the location of
your choice. The names are graph1.png, graph2.png etc.

for(i in 1:4) {
         png( file=paste("C:/Insert file location/graph",i,".png", sep="") )
         print( qplot(x=mydata[,i]) )

Thanks for the help you guys.

View this message in context: http://r.789695.n4.nabble.com/qplot-and-for-loops-tp3663292p3666489.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list