By hrbrmstr
So, I (unapologetically) did this to @Highcharts last week:
@hrbrmstr Your loss of words inspired this post!! https://t.co/3KO0BP0k0u @hadleywickham @ma_salmon @tdmv @bearloga @rushworth_a @awhstin
— Highcharts (@Highcharts) March 18, 2016
They did an awesome makeover (it’s interactive if you follow the link):
And, I’m not kidding, it’s actually a really good treemap. Not too many hierarchies or discrete categories. But, it’s still hard for humans to compare things without the aid of the interaction (which is totally fair, the Highcharts folks do interaction well). I always try to find an alternative to treemaps, usually through trying to figure out the story to tell. I think there’s at least one story in the Highcharts data that we can uncover with a different visualization. Ironically, the visualization I’ve chosen is a stacked bar chart (I don’t generally like them, either). I’ll frame the story and then dissect the code.

We looked at the number of frameworks being used with Highcharts across web-oriented programming languages. Surprisingly, four of the six top languages—Java, PHP, Python & dotNet—show Highcharts being used *without* an associated framework, which highlights the flexible nature of Highcharts. There seems to be—unsurprisingly—only one player in town when it comes to Ruby: Ruby on Rails, and the high prevalence of AngularJS tracks with Angular’s apparent dominance in javascript land. INSERT_MARKETING_LANGAUGE_HERE
In real life, I’d add a DataTables interactive table with this to let folks explore a bit more.
Making this in R & ggplot2
Highcharts used a Google Sheet to hold the data for their treemap makeover. That means we can have some fun with it in R. So, the two main story points are:
- show how the languages, and in-language frameworks rank against each other
- show the dominant framework in each language
As demonstrated, I’ve chosen to use stacked bar charts since …read more
Source:: r-bloggers.com