Displaying 1 result from an estimated 1 matches for "samplo002".
Did you mean:
samplo001
2012 Apr 28
3
Exporting plots generated by a 'for' loop
Hello!
I have a 'for' loop that generates a plot with 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))