plot figure in R and store it.

plot figure in R and store it.


for(interval in c(0,1,10,20,50,100)) {
	x = read.table(paste0("pred", interval, ".txt") )
	setEPS()
	postscript(paste0("inter",interval, ".eps"), height = 7, width = 10)
	plot(x[,1], type="o", xlab=expression(italic("i")), ylab="detection accuracy", lwd=3, cex.axis=1.4, ylim=c(0.4, 1.0), cex.lab =1.4)
	dev.off()
}


你可能感兴趣的:(plot figure in R and store it.)