facet_grid_paginate: Split facet_grid over multiple plots

facet_grid_paginateR Documentation

Split facet_grid over multiple plots

Description

This extension to ggplot2::facet_grid() will allow you to split a facetted plot over multiple pages. You define a number of rows and columns per page as well as the page number to plot, and the function will automatically only plot the correct panels. Usually this will be put in a loop to render all pages one by one.

Usage

facet_grid_paginate(
  ...,
  shrink = TRUE,
  ncol = NULL,
  nrow = NULL,
  page = 1,
  byrow = TRUE
)

Arguments

...

Args to pass along to facet_grid.

shrink

If TRUE, will shrink scales to fit output of statistics, not raw data. If FALSE, will be range of raw data before statistical summary.

ncol

Number of columns per page

nrow

Number of rows per page

page

The page to draw

byrow

Should the pages be created row-wise or column wise


toddagood/apatfa documentation built on Jan. 30, 2023, 11:51 p.m.