Skip to content

Instantly share code, notes, and snippets.

View jalapic's full-sized avatar

James Curley jalapic

View GitHub Profile
@jalapic
jalapic / README.md
Created March 4, 2016 02:42
Point Tracking for Non-Linear Lines: III

What This Shows

Using data from the US Census, this visualization displays popular names that have historically been androgynous.

Technical

Control points are not intersected by the path for several non-linear interpolations for lines ("basis" in this case). Because of this, point tracking for non-linear lines should be calculated from the svg-path rather than from the d3-scales. Mike Bostock has two examples showing how to do this with a single path. This gist shows one approach for point tracking with multiple paths. Other approaches are shown here and here.

This approach saves precomputed closestPoints of each data point's linear coordinates respective to their parent path. The precomputation took 63.85 seconds (~0.16 seconds per point). What still remains for

@jalapic
jalapic / README.md
Created March 4, 2016 04:50
gini curves
@jalapic
jalapic / README.md
Last active March 5, 2016 05:02
gini curves
@jalapic
jalapic / README.md
Created March 4, 2016 23:55
Subway Wait Assessment
@jalapic
jalapic / README.md
Last active March 5, 2016 19:50
gini curves linked
@jalapic
jalapic / README.md
Last active March 6, 2016 20:22
small multiple lines
@jalapic
jalapic / README.md
Created March 8, 2016 02:50
TSNE Plot of Yelp Reviews

An illustration of TSNE layout of word2vec output from a subset of Yelp reviews.

Use the mouse to click on a dot and see the word plotted. Click a label to hide it again.

Color indicates polarity based on simple word labeling from the AFINN wordlist. It may be that context in this dataset affects polarity :)

forked from arnicas's block: TSNE Plot of Yelp Reviews

@jalapic
jalapic / .block
Created March 8, 2016 02:54
Teacher Wages
height: 800
@jalapic
jalapic / README.md
Last active March 9, 2016 03:15
network fade 3
@jalapic
jalapic / README.md
Created March 13, 2016 19:41
VI7: Node-link diagram and Adjacency matrix

Node-link Diagram

I added a new attribute to the dataset which is region.

In the node-link diagram, states in the same region likely stick together as they have links in between.

States in region which has less number of links spread out in the diagram. For example: look at the light-green color (South Atlantic), Florida is far apart with those states (DC, Maryland, Virginia, West Viginia, Delaware).

Thus, although the dataset is non-spatial, users can explore the relationship of nodes by looking the distance or number of hops in between.