rtsplot.legend {rtsplot} | R 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 |
bty |
box, defaults to 'n', see |
border |
border color, defaults to NA - no color |
yformat |
format Y values function, defaults to |
cex |
font size, defaults to 1 |
... |
other parameters to legend, see |
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)
[Package rtsplot version 0.1.5 Index]