My code:
ggplot(data=ICL3, aes(x=as.Date(AÑO_MES), y=IndICL3, group=RUN_FM, colour=RUN_FM)) +
labs(colour = "RUN Fondos") +
coord_cartesian(ylim=c(0, 150)) +
xlab("Periodo") + ylab("% Cobertura") +
geom_hline(aes(yintercept=100),colour="red",size=1.2) +
stat_summary(fun.y = mean, geom="smooth", size=1, mapping = aes (group = 1),colour="green") +
geom_point() +
facet_grid(RUN_FM ~ SERIE)
Facet_grid is plotting all the results in one window which consist in more than 100 tables, which obviously looks awful and is unintelligible.
Is there a way to put a condition on the number of tables, and plot the results in more than 1 window? Or do I have to manually split the data for comprehensible graphics?
The best I can think of is saving subsets of your total facet series.
Without a reproducible dataset, I can only suggest that you
1) look here for how to subset data for facets (two at a time?)
2) wrap a
forloop orlapply()function around a plot call andggsave()