rtsplot.legend: Plot legend - shortcut to the 'legend' function

rtsplot.legendR Documentation

Plot legend - shortcut to the legend function

Description

Plot legend - shortcut to the legend function

Usage

rtsplot.legend(
  labels,
  fill = NULL,
  lastobs = NULL,
  x = "topleft",
  merge = FALSE,
  bty = "n",
  border = NA,
  yformat = rtsplot.format,
  cex = 1,
  ...
)

Arguments

labels

legend labels

fill

fill colors, defaults to NULL

lastobs

list of last observations, defaults to NULL

x

location of legend, defaults to 'topleft'

merge

merge, defaults to FALSE, see legend function for more info

bty

box, defaults to 'n', see legend function for more info

border

border color, defaults to NA - no color

yformat

format Y values function, defaults to rtsplot.format

cex

font size, defaults to 1

...

other parameters to legend, see legend function for more info

Value

nothing

Examples

y = rtsplot.fake.stock.data(1000)
symbol = 'SPY'
	
 # plot
 layout(1)
 rtsplot(y, type = 'l', col='black')
rtsplot.legend(symbol, 'black', y)


rtsplot documentation built on Sept. 24, 2023, 1:07 a.m.