[This article was first published on
Paul Butler » R
, and kindly contributed to
]. (You can report issue about the content on this page
Want to share your content on R-bloggers?
if you have a blog, or
if you don't.
On Saturday, the Wall St. Journal
posted details of an internal Groupon memo that reported $760 million in revenue last year.
The WSJ article came just as I was finishing up a visualization of some data I had collected on Groupon deals, which gives perspective on that massive number in terms of the individual deals.
Each box is a deal. I used height to represent number sold, and width to represent the price. Area is therefore gross revenue, and colour is city for the top 20 cities.
(Click for a larger, interactive version. Only works in browsers that support SVG, i.e. not IE)
The 2D-bin-packing was implemented in R and C++, based on code by
mackstann. Thanks to my friends Eric and Lisa for feedback on a draft of the visualization.