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


MattCowgill/grattantheme documentation built on Nov. 2, 2024, 8:52 p.m.