Skip to contents

Compose multiple plots with a lab-standard patchwork layout

Usage

layout_lab(
  ...,
  ncol = NULL,
  nrow = NULL,
  guides = "collect",
  tag_levels = NULL,
  tag_size = 10,
  tag_face = "bold",
  tag_family = NULL,
  tag_position = c(0, 1)
)

Arguments

...

ggplot objects or a single list of ggplot objects.

ncol

Number of columns in the composed layout.

nrow

Number of rows in the composed layout.

guides

Guide collection strategy passed to patchwork::wrap_plots().

tag_levels

Optional tag level passed to patchwork::plot_annotation(), such as "A" or "a".

tag_size

Panel tag text size in points.

tag_face

Panel tag font face.

tag_family

Panel tag font family. If NULL, uses the active theme.

tag_position

Two numeric values used for plot.tag.position.

Value

A patchwork composition.