neuroscience, machine learning, and the life of a lowly grad student

Stream Graph Code

Lee Byron made a really cool visualization algo a while ago that's been making the rounds on the internet and NYT. I couldn't find any code for it, so I went ahead and wrote some.



I'm not totally sure how much real value it adds to the data other than making it look super-nice. Maybe that's the only way to get people to pay attention to it, though. -shrug- For comparison here's some data from ManyEyes - Humanitarian aid to a few countries over time. I mashed in a legend from my last post :P



It's a bit blurry (I didn't touch things up in Illustrator), but not to bad for an hour and a half of work.

Code: streamGraph_wrapper.m, plotStackedGraph.m

Not well commented, but short enough to figure out I hope.

3 comments:

b4silio said...

Wonderful!
Stumbled on this post by chance and I've been playing with the code a couple of minutes. The code has a couple of quirks to fix before it works as it is but the results are very nice!

Ian said...

Hey b4silio, glad to see it's getting some use! Quirky is probably a good way to describe my code. :P

Anonymous said...

Hi, im very interested in this code, b4silio did you fix the little quirks??, i havent be able to execute it, any help will be great!!!