[R] Help Please, ggplot2
David Lyon
david_lyon3 at yahoo.com
Mon Apr 1 22:42:44 CEST 2013
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
More information about the R-help
mailing list