cigaring 使用ggplot2吧. 里面的qplot函数可以把画的图像储存到一个变量里面. for (i in 1:288) { x<-qplot(xxxxx) ggsave(x,file = 'xxxx') } 这样就可以了.