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 Jan. 13, 2023, 11:02 a.m.