cf_applyPaginate: Get list of paginated plots

View source: R/plotting.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/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.