[EMAIL PROTECTED] wrote:
Dear all

I wrote a routine. At the end of each cycle of the loop I would like to save the result (plot) in a postcriptfile.
Of course if I just use dev.print in the following way: dev.print(device=postcript, 'c:/Rfigures/plot_1.ps")
I overwrite my results with the second cycle of the loop. I suppose there is a way to define the file name so that several plots are created(plot_1,plot_2...).

Two comments:


a) You might want to use postscript() directly with its argument onefile=FALSE.

b) construct the filename with an index you are using in the loop (say "i"):
  dev.print(device=postscript,
    file = paste("c:/Rfigures/plot_", i, ".ps", sep = ""))


Uwe Ligges



Could you give me an advice? Thanks a lot

Best Regards Mike

---
sunrise ADSL
Gratis, einfach und schnell: sunrise ADSL, inkl. USB Modem und einmalige 
Aufschaltgeb?hr
http://internet.sunrise.ch/de/internet/int_ads.asp
---
sunrise ADSL
Gratuit, simple et rapide: sunrise ADSL, Modem USB inclus, aucun frais de mise en 
service
http://internet.sunrise.ch/fr/internet/int_ads.asp
---
sunrise ADSL
Gratis, pratico e veloce: sunrise ADSL, incl. Modem USB et tassa attivazione
http://internet.sunrise.ch/it/internet/int_ads.asp
---
sunrise ADSL
free, simple and fast: ADSL from sunrise,  incl. Modem USB and one- time activation fee
http://internet.sunrise.ch/de/internet/int_ads.asp
---

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.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://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to