I have a big data frame and I'm using ggplot.
ggplot()+
geom_line(data=DATA,aes(logl,PercPos,group=name),col="blue")+
geom_line(data=DATA,aes(logl,PercNeg,group=name),col="green")+
geom_histogram(data=DATA, aes(x=logl,alpha=.5,group=name),bindwidth=0.1,density=T)+
facet_wrap(~ name,as.table=T)+
theme_bw()+
xlim(min(DATA$logl),max(DATA$logl))
It generates 180 different plot. I would like to have the results plotted in different file , for example not more than 30 plot in each file.
Is there an easy automatic way to do that?
Thanks for help.