Blog Archives

PCA and K-means Clustering of Delta Aircraft

June 22, 2014
By
PCA and K-means Clustering of Delta Aircraft

nIntroductionnI work in consulting. If you're a consultant at a certain type of company, agency, organization, consultancy, whatever, this can sometimes mean travelling a lot.nnMany business travellers 'in the know' have heard the old joke that if you want to stay at any type of hotel anywhere in the world and get a great rate, all you have to...

Read more »

Heatmap of Toronto Traffic Signals using RGoogleMaps

April 12, 2014
By
Heatmap of Toronto Traffic Signals using RGoogleMaps

A little while back there was an article in blogTO about how a reddit user had used data from Toronto's Open Data initiative to produce a rather cool-looking map of all the locations of all the traffic signals here in the city.It's neat because as the author on blogTO notes, it is recognizable as Toronto...

Read more »

colorRampPaletteAlpha() and addalpha() – helper functions for adding transparency to colors in R

March 8, 2014
By
colorRampPaletteAlpha() and addalpha() – helper functions for adding transparency to colors in R

colorRampPalette is a very useful function in R for creating colors vectors to use as the palette, or to pass as an argument to a plotting function; however, a weakness lies in that it disregards the alpha channel of the colors passed to it when creating the new vector.I have also found that working with the alpha channel in...

Read more »