powered by
Create HL Plot
rtsplot.hl(y, col = rtsplot.volume.col(y), border = rtsplot.theme()$col.border)
nothing
xts object
xts
color for bars, defaults to rtsplot.volume.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.hl(y) rtsplot.legend(symbol, 'black', y)
Run the code above in your browser using DataLab