Hello R help mailing list,
I'm having difficulty saving a series of figures in an
analysis.  I have attempted to save them in a for loop with
the following code: 

for(i in 1:20){
        sF<-paste("fig",i,".jpeg",sep="")
jpeg(file=sF,width=600,height=500,quality=100,pointsize=12)
        attach(plotData)
        xyplot(CHC~1:13),
        detach(plotData)
        graphics.off()
}

If I break apart the for loop and write the code 20 times,
the images save correctly.  When I run the for loop the
saved images are blank.  Any help would be greatly
appreciated,
Martin

______________________________________________
[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
      • ... Tony Plate
  • ... Loke Chok Kang
  • ... Austin, Matt
  • ... Austin, Matt
    • ... Thomas Lumley
  • ... Paolo Tommasini
  • ... Наталия Титова
    • ... Spencer Graves
  • ... Martin Heller
    • ... Adaikalavan Ramasamy
  • ... YiYao_Jiang
    • ... Kevin Wang
  • ... YiYao_Jiang
  • ... YiYao_Jiang
    • ... Uwe Ligges
    • ... Gabor Grothendieck
  • ... Jean-Luc aLLARD
  • ... Yulei He
    • ... Mahbub Latif

Reply via email to