patch_titles {ggalign}R Documentation

Add patch titles to plot borders

Description

This function extends ggplot2's title functionality, allowing you to add titles to each border of the plot: top, left, bottom, and right.

Usage

patch_titles(
  top = waiver(),
  left = waiver(),
  bottom = waiver(),
  right = waiver()
)

Arguments

top, left, bottom, right

A string specifying the title to be added to the top, left, bottom, and right border of the plot.

Details

You can also use labs() to specify titles for the top, left, bottom, and right borders of the plot.

The appearance and alignment of these patch titles can be customized using theme():

Value

A labs object to be added to ggplot.


[Package ggalign version 0.0.3 Index]