extract_labs: Take a ggplot2 object and return a list containing its title,...

View source: R/extract_labs.R

extract_labsR Documentation

Take a ggplot2 object and return a list containing its title, subtitle, and caption. Recognises Patchwork plots.

Description

Take a ggplot2 object and return a list containing its title, subtitle, and caption. Recognises Patchwork plots.

Usage

extract_labs(p)

Arguments

p

ggplot2 object

Value

list with three elements: title, subtitle, caption


grattan/grattantheme documentation built on April 11, 2025, 8:56 p.m.