That was a nice little R exercise. Here's the source code for the last graph http://t.co/8kPqueEF https://t.co/xVjxS7qI