printGGList: Print a ggplot2 object, or list of ggplot2 objects

View source: R/printGGList.R

printGGListR Documentation

Print a ggplot2 object, or list of ggplot2 objects

Description

Function to print a ggplot2 object or a list of ggplot2 objects.

Usage

printGGList(plots, figno = NULL, cap = NULL, show = TRUE)

Arguments

plots
  • a ggplot2 object or a list of ggplot2 objects

figno
  • figure number (or NULL)

cap
  • plot caption

show
  • flag (T/F) to actually print plots

Details

Captions for each figure are taken from the name of the list element associated with the plot. figno is substituted for '&&fno' or '&&figno' in the caption and incremented for the next plot.

Value

list with elements:

  • figno - figure number for next plot, if figno was not NULL

  • plotlist - non-nested list of plots, with numbered captions as names


wStockhausen/wtsUtilities documentation built on Aug. 18, 2024, 11:48 p.m.