我试着在一个位置写很多图,但是却写了一堆空白图片:
我的代码看起来像这样:
titleplot<-NULL
for(i in 1:99){
titleplot<-colnames(data[i])
mypath <- file.path("C:","Users","user.ME","Desktop","graph outputs", paste("myplot_", titleplot, ".jpg", sep = ""))
plot(data[,i],type="l", main =titleplot)
jpeg(file=mypath)
dev.off()
}
有没有人知道为什么会发生这种情况,或者我可以如何补救?
https://stackoverflow.com/questions/24207960
复制相似问题