Constructs and configures the legend_args list by:
Sanitizing legend input
Setting defaults for all legend parameters
Computing positioning flags from original position (before transformation)
Adjusting position anchors for outer legends
Adjusting for special cases (gradient, horizontal, multi-column)
Populating legend_env with args and positioning flags
build_legend_args(
legend_env,
legend,
legend_args,
by_dep,
lgnd_labs,
labeller = NULL,
type,
pch,
lty,
lwd,
col,
bg,
cex,
gradient
)NULL (modifies legend_env in-place)
Legend environment to populate
Legend placement keyword or list
Additional legend arguments
The (deparsed) "by" grouping variable name
The legend labels
Function, character keyword, or dictionary (named vector or
list) for formatting or relabelling the labels. See tinylabel for the
accepted forms.
Plot type
Plotting character(s)
Line type(s)
Line width(s)
Color(s)
Background fill color(s)
Character expansion(s)
Logical indicating gradient legend