Learn R Programming

maidr (version 0.1.2)

extract_scale_mapping: Extract scale mapping from built plot

Description

Extracts the scale mapping from a built ggplot2 plot object. This mapping converts numeric positions back to category labels.

Usage

extract_scale_mapping(built)

Value

Named vector for scale mapping, or NULL if no mapping available

Arguments

built

Built plot data from ggplot2::ggplot_build()