Wednesday, 19 March 2014

Heatmaps...

I am working through the exercises in the Flowing data book - pages 230 onwards.

I like the look of the heatmaps.

It requires a bit of data munging.
One key thing to do is to put the data into a matrix.
A data from will give an error message!

generally that's not too difficult but in a matrix the data type has to be uniform across all cells!

> ball_matrix <- data.matrix(bball)

That does it. Not too difficult.

Within heatmaps colours are important.

ColorBrewer can be worth installing.

> library (RColorBrewer)

>bball_heatmap <- heatmap(bball_matrix, Rowv=NA, Colv=NA, col = brewer.pal(9,"Blues"), scale="column", margins=c(5,10))

Then makes this:



I quite like the look of this but I am not sure about the quantitation of the colours.
I am a bit suspicious of this.

Still it's interesting.

I have also looked at Chernoff Faces but I am not convinced.
Start charts are mentioned but I don't really like them either.

Still making good quality Heatmaps is probably a good skills to have.

That's all for now.
I'm tired and I want to go to bed.
I might settle for meditation...

In the book there are spaces between the boxes in the heatmap but that's not the way they are coming out of R for me.
This is a bit puzzling.
I tried searching for a bit more info but so far not successful.
Mmmm....




No comments:

Post a Comment