epi_plots_to_grid: Send a list of plots to a grid object

View source: R/epi_plots_to_grid.R

epi_plots_to_gridR Documentation

Send a list of plots to a grid object

Description

A light wrapper for cowplot::plot_grid(). Send a list of plots to a grid for multi-plot figures. Makes assumptions and hard-codes preferences. All options are passed to plot_grid().

Usage

epi_plots_to_grid(
  plot_list = NULL,
  align = "hv",
  axis = "lrtb",
  labels = "AUTO",
  label_size = 12,
  ncol = NULL,
  nrow = NULL,
  ...
)

Arguments

plot_list

List of plots to be arranged into the grid.

align

cowplot vertical and/or horizontal alignment. Default is 'hv'.

axis

Align left, right, top or bottom and order. Default is 'lrtb'.

labels

Default is 'AUTO'.

label_size

Default is 12.

ncol

Number of columns in the plot grid.

nrow

Number of rows in the plot grid.

...

Pass any other parameter from plot_grid()

Value

a cowplot grid object

Note

See example in epi_plot_cow_save and ggplot2 wrappers epi_plot_*().

Author(s)

Antonio Berlanga-Taylor <\url{https://github.com/AntonioJBT/episcout}>

See Also

epi_plot_list, epi_plot_cow_save, plot_grid, save_plot.


AntonioJBT/episcout documentation built on June 8, 2024, 7:47 a.m.