knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
devtools::install_github("timelyportfolio/rd3fc")
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()
I would love help ad ideas, but please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Thanks to Mike Bostock for d3.js
and the team at Scott Logic for d3fc
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.