legend_margin: Add legend with respect to figure instead of plot region.
Allows to move legend to margin of plot.
Description
Add legend with respect to figure instead of plot region.
Wrapper around the function legend.
Usage
legend_margin(x, legend, adj = NULL, ...)
Arguments
x
Text string, the location of the legend relative to the figure
region. Single keyword from the list 'bottomright', 'bottom', 'bottomleft',
'left', 'topleft', 'top', 'topright', 'right' and 'center'.
legend
Vector with text strings to appear in the legend.
adj
Numeric vector of length 1 or 2; the string adjustment for
legend text.
...
Other parameters for specifying the legend
(see legend).