Learn R Programming

rtsplot (version 0.1.5)

rtsplot.hl: Create HL Plot

Description

Create HL Plot

Usage

rtsplot.hl(y, col = rtsplot.volume.col(y), border = rtsplot.theme()$col.border)

Value

nothing

Arguments

y

xts object

col

color for bars, defaults to rtsplot.volume.col

border

border color, defaults to rtsplot.theme()$col.border

Examples

Run this code
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