Sunday, January 15, 2017

Marimekko Charts in ggTimeSeries

( Originally appeared on the Ather Blog )

We just added Marimekko charts to the ggTimeSeries library.

What are Marimekko charts? Also know as mosaic plots, they help visualise the co-occurrence of two categorical or ordinal variables and compare the occurrence of that pair to other pairs.

Remember the plot showing the proportions of accelerations from our last blog post?

Here is the same data visualised as a Marimekko plot. The X axis plots the overall occurrence of the starting buckets. The Y axis plots the distribution of the next bucket given the current bucket is the label on the X axis. For instance, the plot for Julian’s decelerations, indicates that about 50% of the decelerations start from the mid bucket, because the column labelled mid occupies about 50% of the space on the X axis. and out of these decelerations, almost 60% end in the mid bucket itself while the remaining 40% end in the low bucket.

Similarly, George’s affinity for high speeds clearly shows up here. The high amount of blue you see in the acceleration plots indicates the proportion of times he accelerates to the high speed bucket. The high amount of blue in the deceleration plot similarly indicates that a large share of George’s decelerations are small ones which let him stay within the high speed bucket. Compare this to Timmy’s plot, which has large swathes of green instead.

Sunday, December 25, 2016

Fantasy Football - 8: Easy Stretches of Fixtures

Compared to identfying teams that are performing well, it's a pain to identify stretches of appealing fixtures. The coloured indicators for match difficulty that FPL tacked on in 2016-17 don't seem to update with performances.

The charts below use only the EPL data to try and highlight four aspects that one would typically look at when trying to decide transfers. The thresholds, etc. aren't some sort of recommendation. Feel free to change them if some other number makes more sense.

Code and ( usually ) updated charts available here:

Sunday, December 18, 2016

Alappuzha, Kerala, India

The Nehru Trophy Boat Race, held in a town* district called Alappuzha ( the -uzha to rhyme with barracuda ) in Kerala, is an early example of things being named after deceased members of the Nehru clan. It conveniently happens on the second Saturday of every August so you can stretch it to Independence Day and get a nice long weekend trip out of it. Although, if you are indeed able to make a long weekend out of Independence Day you are better off going somewhere else. It's an event with history and an integral part of their culture, the locals love it, the author has lived most of his life in landlocked cities, and despite all these things in its favour it didn't impress.

Sunday, September 18, 2016

Mudigere, Karnataka, India

A three day weekend in Bangalore in the middle of the summer seemed like a good time to head to the hills. The particular hills we chose were located in Mudigere, in the Chikkamaguluru district. We had a home stay for a day and a half so spent the extra day driving around to random spots and staying overnight in a nearby town called Kadur. Kadur, not because it is a touristic destination but because that was only place that had availability in hotels that night. The only memory anyone in the group has of those few hours is of a large Bengali family sounding and acting Bengali in the guest house corridors.

Wednesday, August 3, 2016

Sundarbans, West Bengal, India

I visited the Sundarbans for an overnight 24 hours in December, 2015. It is the largest mangrove forest area in the world but, like Bangladeshi people, most of it is in Bangladesh so you only get to see a fraction of it on Indian territory.