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]) ) dev.off()} 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. ______________________________________________ R-help@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.