rtsplot.legend | R Documentation |
legend
functionPlot legend - shortcut to the legend
function
rtsplot.legend(
labels,
fill = NULL,
lastobs = NULL,
x = "topleft",
merge = FALSE,
bty = "n",
border = NA,
yformat = rtsplot.format,
cex = 1,
...
)
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 |
nothing
y = rtsplot.fake.stock.data(1000)
symbol = 'SPY'
# plot
layout(1)
rtsplot(y, type = 'l', col='black')
rtsplot.legend(symbol, 'black', y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.