Learn R Programming

QuantTools (version 0.5.2)

add_legend: Add legend to active time series plot

Description

Add legend to active time series plot

Usage

add_legend(position = "topright", names, col = "auto", lty = 1, lwd = 1, pch = NA)

Arguments

position
same as in plot_ts except 'n'
names
line labels
col
same as in plot_ts
lty, lwd
same as in lines
pch
same as in points

Details

Used in plot_ts internally.

See Also

Other graphical functions: add_last_values, distinct_colors, empty_plot, hist_dt, lines_ohlc, lines_stacked_hist, multi_heatmap, plot_table, plot_ts