Get list of paginated plots

When creating your plot, use ggforce::facet_wrap_paginate or ggforce::facet_grid_paginate instead of facet_wrap/grid.

applyPaginate(pl)

Arguments

pl

(not yet facetted) ggplot

Value

list of ggplots

Author

Daniel Lill (daniel.lill@physik.uni-freiburg.de)

Examples

if (FALSE) { # \dontrun{
# adapted from ggforce examples
library(ggplot2)
pl <- ggplot(diamonds) +
  geom_point(aes(carat, price), alpha = 0.1) +
  ggforce::facet_grid_paginate(color ~ cut:clarity, ncol = 3, nrow = 3, page = 4)
plotlist <- applyPaginate(pl)
plotlist[[1]]
plotlist[[5]]
length(plotlist)
} # }