Learn R Programming

esvis (version 0.2.0)

create_base_legend: Create a base legend for a plot

Description

This function creates a legend using the base legend function, but with more abbreviated syntax.

Usage

create_base_legend(labels, position = "bottomright", ...)

Arguments

labels

Labels for the legend (line labels).

position

Where the legend should be positioned. Defaults to "bottomright".

...

Additional arguments passed to legend (typically colors, line width, etc).