sanitize_legend: Sanitize and normalize legend input

View source: R/legend.R

sanitize_legendR Documentation

Sanitize and normalize legend input

Description

Converts various legend input formats (NULL, character, list, call) into a standardized legend_args list with an "x" position element.

Usage

sanitize_legend(legend, legend_args)

Arguments

legend

Legend specification (NULL, character, list, or call)

legend_args

Existing legend_args list to merge with

Value

Normalized legend_args list with at least an "x" element


tinyplot documentation built on Nov. 29, 2026, 9:07 a.m.