All examples By author By category About

timelyportfolio

d3fc for R as htmlwidget (try drag)

Install

devtools::install_github("timelyportfolio/rd3fc")

Example

quantmod is an superpower of R. Let's remember how few lines of code we need to make a static candlestick chart.

library(quantmod)

getSymbols("^GSPC", from = "2016-12-31")
chart_Series(GSPC)

I view this as simply amazing, but the only thing missing is some interactivity. rd3fc plans to eventually complete translate chart_Series to an interactive chart, but for now it will just produce the candlestick.

library(rd3fc)
# will use the current.chob() if no arguments
chartseries()

forked from timelyportfolio's block: d3fc for R as htmlwidget