[R] (no subject)

Martin Heller hellerma at yahoo.com
Sun Sep 26 22:04:14 CEST 2004


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




More information about the R-help mailing list