This is a short demo to illustrate how to use the function create_chart
in rCharts
to publish an interactive visualization along with its source code. The key idea is to save the code used to create the visualization in an R file, call create_chart
on it, and then publish the visualization.
require(rCharts)
my_chart <- create_chart("code.R")
my_chart$publish("Publishing using create_chart")
Modified http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js to a secure url
Modified http://d3js.org/d3.v2.min.js to a secure url
Modified http://nvd3.org/nv.d3.js to a secure url
Modified http://nvd3.org/lib/fisheye.js to a secure url
Modified http://cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js to a secure url
https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
https://d3js.org/d3.v2.min.js
https://nvd3.org/nv.d3.js
https://nvd3.org/lib/fisheye.js
https://cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js