Learn R Programming

maidr (version 0.1.2)

extract_format_config: Extract Format Configuration from Built Plot

Description

Extracts MAIDR format configuration from the scale objects in a built ggplot2 plot. This looks for the maidr_format attribute attached by the maidr label functions.

Usage

extract_format_config(built)

Value

A list with x and/or y format configurations, or NULL if no format config is found

Arguments

built

A built ggplot2 object from ggplot2::ggplot_build()