Skip to content

Plots open high low close chart of (financial) time series

Felix edited this page Jun 6, 2014 · 2 revisions

Line chart

apple <- get.ohlc.yahoo(symbol = "AAPL", start = "2013-07-01", end = "2013-08-01")
lineChart(apple, y = "adjusted", breaks = "1 day")

Candlestick chart

apple <- get.ohlc.yahoo(symbol = "AAPL", start = "2013-07-01", end = "2013-08-01")
candlestickChart(apple, y = "adjusted", breaks = "1 day")

Volume chart

apple <- get.ohlc.yahoo("AAPL", start = "2014-04-01", end = "2014-04-30")
volumeChart(apple, y = "adjusted", breaks = "1 day")

Multiple line chart

all <- get.ohlcs.yahoo(c("SBUX", "AAPL", "SPY"), start = "2013-01-01", end = "2013-06-30")
lineChartMult(all, y = "adjusted", breaks = "1 week")