On Mon, 30 Aug 2004, Austin, Matt wrote: > A correction. You either need to open the plotting device prior to the > simulation that includes your plotting commands and close it after the > simulation or have the name change dynamically in your simulation so that > the runs go in separate files. > > An example of the first method would be > > postscript(file="/where/to/put/file/filename.ps")
It's also worth pointing out that many people will find pdf() more convenient than postscript() -thomas > > ## your simulation commands > > dev.off() > > for the second method more info would be needed to know how you are running > your simulation to help with dynamic naming. > > --Matt > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Austin, Matt > Sent: Monday, August 30, 2004 18:56 PM > To: 'Loke Chok Kang'; [EMAIL PROTECTED] > Subject: RE: [R] (no subject) > > > > 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: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Loke Chok Kang > Sent: Monday, August 30, 2004 18:42 PM > To: [EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html