Wish list: Could OHLC use up/down colors?
Issue #3
closed
Some packages do this well, dygraphs and quantmod are examples. This would be quite nice to have.
Comments (3)
-
repo owner -
reporter - changed status to resolved
Works great, thanks!
-
reporter - changed status to closed
Works great, thanks!
- Log in to comment
Good idea. Code updated.
The following example creates time series plot with OHLC style. Each bar is colored with up/down colors according to
rtsplot.candle.col
function. Thertsplot.candle.col
function sets colors based on Open and Close prices. I.e. iif( Cl(y) > Op(y), theme$col.up, theme$col.dn)