powered by
Plot candles if dx is sufficient otherwise ohlc or bars
rtsplot.candle( y, col = rtsplot.candle.col(y), border = rtsplot.theme()$col.border )
nothing
xts object
xts
color for bars, defaults to rtsplot.candle.col
border color, defaults to rtsplot.theme()$col.border
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)
Run the code above in your browser using DataLab