This is an R package to draw charts with highstock. This package is mainly for demonstration purpose at 46th Tokyo.R meeting.
highstock is a wonderful Javascript library by Highsoft, provided under CC BY-NC license.
A Highsoft software product is not free for commercial use. For more details, please see http://shop.highsoft.com/faq/non-commercial#what-is-non-commercial .
Tokyo.R is a reginal R meetup at Tokyo in Japan. Some report articles are available on R-bloggers.
devtools::install_github("yutannihilation/highstockR")
library(highstockR)
library(dplyr)
data <- RFinanceJ::rfj("USDJPY=X") %>%
transmute(Date = as.numeric(Date) * 3600 * 24 * 1000, Close) %>%
arrange(Date) %>%
as.matrix
colnames(data) <- NULL
highstock(data, 'USDJPY=X')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.