Credit to James Keirstead who developed Scholar - http://www.jameskeirstead.ca/blog/new-r-package-scholar/ and Ramnath Vaidyanathan who developed rCharts - http://rcharts.io/ and the gist viewer.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
I don't love the 'annualised' quarterly growth rates shown in this chart, it is more for demonstrative purposes.
You can select the cities you want displayed by clicking on the corresponding coloured dots. The 'stacked' option is of no use in this example (I will learn how to turn it off for future charts).
Thanks to Ramnath Vaidyanathan for his rapid reponses to questions about rCharts - http://rcharts.io/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(devtools) | |
library(reshape2) | |
#install_github('rCharts', 'ramnathv', ref = 'dev') | |
library(rCharts) | |
data <- read.csv("~/industry.csv") | |
fd <- as.data.frame(diff(as.matrix(data[,c(2:ncol(data))]),1)) | |
fd$date <- data[-1,1] | |
fd <- melt(fd, .id = date) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<meta charset = 'utf-8'> | |
<html> | |
<head> | |
<link rel='stylesheet' href='http://nvd3.org/src/nv.d3.css'> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script> | |
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script> | |
<script src='http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js' type='text/javascript'></script> | |
<script src='http://nvd3.org/lib/fisheye.js' type='text/javascript'></script> |
OlderNewer