While I was looking for a solution for this, I can traverse ggplus. In particular, the facet_multiple function:
https://github.com/guiastrennec/ggplus
Allows you to divide the facet into several pages, indicating the number of graphs that you want on the page. In your example, this would be:
library(ggplus) df <- data.frame(x=seq(1,24,1), y=seq(1,24,1), z=rep(seq(1,12),each=2)) myplot <- ggplot(df,aes(x=x, y=y))+geom_point() facet_multiple(plot = myplot, facets = 'z', ncol = 2, nrow = 2)
That's what you need? It worked for me.
Pete900
source share