[R] Help Please, ggplot2

David Lyon
Mon, 01 Apr 2013 20:42:44 -0000

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