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 June 28, 2023, 1:50 p.m.