Build a Legend
prepare_legend(x, args, points = TRUE, lines = TRUE)
x
A data.frame returned by prepare_plot().
data.frame
prepare_plot()
args
A list of additional arguments to be passed to graphics::legend(); names of the list are used as argument names. If NULL or empty, no legend is displayed.
list
graphics::legend()
NULL
points
A logical scalar: legend for points?
logical
lines
A logical scalar: legend for lines?
N. Frerebeau