Dear all,

Every time that I need to generate I plot output as figure I use something like

png("myoutput.png")
plot(rnorm(100)*1.0,col=4)
points(rnorm(100)*0.5,col=2,pch=0)
dev.off()

But now I need to generate a lot of outputs and it could not be done in a for 
looping where I can change the names. So I would like to know if is there a way 
of I automatically redirect the output from my screen to a png file, and the 
name of the generated files follow a prefix and a numeration like 
myoutput001.png  / myoutput002.png....

Byt the way, my example is with plot, but I will use plot(x), image(x), 
points(x), lines(x) etc.
Any idea?

Kind regards
Miltinho
Brazil



 para armazenamento!

        [[alternative HTML version deleted]]

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

Reply via email to