Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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


QuantTools

Enhanced Quantitative Trading Modelling

v0.5.7.1
GPL-3
Authors
Stanislav Kovalevsky
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.