cf_applyPaginate: Get list of paginated plots

View source: R/copied_from_conveniencefunctions.R

cf_applyPaginateR Documentation

Get list of paginated plots

Description

use ggforce

Usage

cf_applyPaginate(pl)

Arguments

pl

(not yet facetted) ggplot

paginateInfo

output from cf_paginateInfo

Value

list of ggplots

Author(s)

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

Examples

# adapted from ggforce examples
pl <- ggplot(diamonds) +
  geom_point(aes(carat, price), alpha = 0.1) +
  facet_grid_paginate(color ~ cut:clarity, ncol = 3, nrow = 3, page = 4)
plotlist <- cf_applyPaginate(pl)
plotlist[[1]]
plotlist[[5]]
n_pages(pl)
length(plotlist)

dlill/petab documentation built on Oct. 9, 2022, 3:07 p.m.