Skip to content

Instantly share code, notes, and snippets.

View timcameron's full-sized avatar

Tim Cameron timcameron

  • TransferWise
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timcameron
timcameron / Readme.md
Last active December 26, 2015 18:39
AusEconomists
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.
@timcameron
timcameron / Readme.md
Last active December 27, 2015 16:09
AusHousePrices2

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/

@timcameron
timcameron / code.r
Last active December 27, 2015 21:19
Aus Job Growth by Industry - Quarterly changes
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)
@timcameron
timcameron / index
Last active December 28, 2015 12:09
<!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>