rtsplot.candle | R Documentation |
Plot candles if dx is sufficient otherwise ohlc or bars
rtsplot.candle(
y,
col = rtsplot.candle.col(y),
border = rtsplot.theme()$col.border
)
y |
|
col |
color for bars, defaults to rtsplot.candle.col |
border |
border color, 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.candle(y)
rtsplot.legend(symbol, 'black', y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.