Learn R Programming

tinyplot (version 0.8.0)

sanitize_legend: 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)

Value

Normalized legend_args list with at least an "x" element

Arguments

legend

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

legend_args

Existing legend_args list to merge with