You need to use a device to print to such as
postscript(file="/where/to/put/file/filename.ps")
##your plotting code here
dev.off()
Writing a plot at each iteration of your simulation can impact the runtime
greatly.
Please read the posting guide at the bottom of the e-mail, it can help you
get more helpful . . . help
--Matt
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Loke Chok Kang
Sent: Monday, August 30, 2004 18:42 PM
To: r-help at stat.math.ethz.ch
Subject: [R] (no subject)
Hi,
Sorry, I have a problem that require some help. As I am doing a project with
R and this project requires me to do a lot of plotting as I run my
simulation, I need R to help me store my plots automatically as the
simulation is run. Could anyone advise me on how this can be done? If
possible I need all the plots to be written to a file.
PS:In all I have over 500 over plots, thus it will not be possible to
manually plot all the plots out.
>From yours faithfully,
Chok Kang
sci10137 at nus.edu.sg
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html