Skip to content

Instantly share code, notes, and snippets.

View faizan-khan-iit's full-sized avatar

Faizan Uddin Fahad Khan faizan-khan-iit

  • Hyderabad, India
View GitHub Profile
@faizan-khan-iit
faizan-khan-iit / animint.js
Created August 19, 2017 01:31
US Tornadoes example - Animint
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / animint.js
Created August 19, 2017 01:17
US Tornadoes example - Animint
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / animint.js
Created August 19, 2017 00:44
US Tornadoes example - Animint
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / ustornadoes-update.R
Last active August 19, 2017 01:30
US tornadoes example for JCGS Animint paper
library(animint)
library(plyr)
library(maps)
data(UStornadoes, package = "animint")
## Set up data
## Order states by tornadoes per square mile
stateOrder <- data.frame(state =
unique(UStornadoes$state)[order(unique(UStornadoes$TornadoesSqMile),
decreasing=T)], rank = 1:49)
@faizan-khan-iit
faizan-khan-iit / animint.js
Created August 18, 2017 11:09
US Tornadoes example for JCGS
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / animint.js
Created April 11, 2017 19:05
ShowSelected with animint2 using aesthetic
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / animint.js
Created April 11, 2017 19:04
ShowSelected with animint2
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / animint.js
Created April 11, 2017 18:55
~/../Desktop/new_test_v2
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / animint.js
Created February 18, 2017 16:28
Population Growth Data
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@faizan-khan-iit
faizan-khan-iit / animint.js
Created December 27, 2016 17:35
Inf vals for non-updating examples
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments