% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/legend.R
\name{sanitize_legend}
\alias{sanitize_legend}
\title{Sanitize and normalize legend input}
\usage{
sanitize_legend(legend, legend_args)
}
\arguments{
\item{legend}{Legend specification (NULL, character, list, or call)}

\item{legend_args}{Existing legend_args list to merge with}
}
\value{
Normalized legend_args list with at least an "x" element
}
\description{
Converts various legend input formats (NULL, character, list,
call) into a standardized legend_args list with an "x" position element.
}
\keyword{internal}
