search for: samplo

Displaying 1 result from an estimated 1 matches for "samplo".

Did you mean: sample
2012 Apr 28
3
Exporting plots generated by a 'for' loop
...th each iteration. I would either like the plots to be stacked one below the other in a single .jpg file or be stored in three different files with each file being named dynamically. The following code is an illustration of my query (but does not accomplish my aim):- for (i in 1:4) { jpeg("samplo.jpg") par(mfrow=c(3,1)) plot(iris[,i+1]~iris[,i]) dev.off() } Is it possible to fulfill any of my two desires? If not, what is the best alternative I have? I hope I have put forth my question clearly. Many thanks for all your help. Regards Tejas Kale IUCAA, Pune, India