library(ggplot2) a<- read.table("data", header=T) b = na.omit(a) ggplot(data=b) + geom_line(aes(x=timepoint, y=value,group=sample, colour= factor(sample))) + geom_point(aes(x=timepoint, y=value, group=s ample)) + facet_wrap(~bio, scales = "free",ncol = 5) +theme_bw() + opts(legend.direction = "horizontal", legend.position = "top", legend.background = theme_blank()) + labs(fill="") dev.off()
This generates one nice plot with many many plots in 1 file. How do I modify the code to split up the plots into single file instead of merging them in 1 file I want each plot to be in a separate file ? Thanks in advance ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.