rtsplot.ohlc | R Documentation |
Plot ohlc if dx is sufficient otherwise bars
rtsplot.ohlc(y, col = rtsplot.theme()$col.border)
y |
|
col |
color for bars, defaults to rtsplot.theme()$col.border |
nothing
y = rtsplot.fake.stock.data(50, ohlc=TRUE)
symbol = 'SPY'
# plot
layout(1)
rtsplot(y, type = 'n')
rtsplot.ohlc(y)
rtsplot.legend(symbol, 'black', y)
rtsplot.theme.set(legend.bg.col=grDevices::adjustcolor('blue', 25/255))
rtsplot.corner.label('Logo \uA9', x=1, y=-1, cex = 0.7, space='figure', col='blue')
rtsplot.theme.set(legend.bg.col = grDevices::adjustcolor('white', 200/255))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.