Thursday, 6 March 2014

Learning a bit about Treemaps...

History of Treemaps
http://www.cs.umd.edu/hcil/treemap-history/index.shtml

Making them with R
uses the
Package - "portfolio"
May need to download it
library(portfolio)

May need to
install.packages("portfolio")

The command then is:
>map.market
It's a bit complex....

I am working through the exercise in the Flowing Data book about Visualising Proportions (pages 157-160).

There is a typo on the page:
From the data downloaded from here:
>posts <- read.csv("http://datasets.flowingdata.com/post-data.txt")

> map.market(id=posts$id, area=posts$views, group=posts$category, color=posts$comments, main="Flowingdata Map")


The "id" column gives each individual box, I think. 
The area of the box comes from the number of views. 
Each of the posts is groups by category. 
The colours reflect the number of comments. 

So we have four dimensions of data here which is quite nice. 

This is an interesting method of visualisation. 
I don't know how useful it is right now but it is certainly interesting. 

Interpretation of this requires some understanding. 


No comments:

Post a Comment