Blog Archives

The Mandelbrot Set in R

December 16, 2014
By
The Mandelbrot Set in R

IntroductionI was having a conversation with someone I know about weather forecasts the other day and it went something like this:"Yes, their forecasts are really not very good. They really need to work on improving them.""Well, yes, I think they're ok...

Read more »

Twitter Pop-up Analytics

October 20, 2014
By
Twitter Pop-up Analytics

IntroductionSo I've been thinking a lot lately. Well, that's always true. I should say, I've been thinking a lot lately about the blog. When I started this blog I was very much into the whole quantified self thing, because it was new to me, I liked the...

Read more »

5 Ways to Do 2D Histograms in R

September 1, 2014
By
5 Ways to Do 2D Histograms in R

Introduction Lately I was trying to put together some 2D histograms in R and found that there are many ways to do it, with directions on how to do so scattered across the internet in blogs, forums and of course, Stackoverflow.As such I thought I'd give each a go and also put all of them together here...

Read more »

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 »