GG what!

The ggplot2 package and its extensions dominate the R visualization landscape, particularly for static charts It got me thinking about how rare was that combination of two ’g’s to start a word - at least in the English language. Luckily, there is a source on github extracted from an infochimps source Not exactly a mind-blowing exercise, but a useful way to use a few techniques from the tidyverse

Read more

Share Comments

EPL Week 5

Game of the week Watford 0-6 Manchester City Second time Man City have won by 5+ goals in consecutive games against same team. They have also done it Derby. Only achieved on two other occasions in English league top tier with WBA figuring twice: crushing local rivals, Birmingham, and suffering at the hands of Liverpool Unfortunately, no video available so you’ll have to settle for this home-made Huddesfield v Leicester game!

Read more

Share Comments

Canadian Census

A few weeks ago I did a post on the StatCan API I have since come across the new cancensus package, a wrapper function for CensusMapper API, in beta and not yet available on CRAN . These has been developed by the Vancouver team at MountainMath featuring Jens von Bergmann. His blog, Mountain Doodles is well worth a read - and, usefully, includes his twitter feed

Read more

Share Comments

Hugo Shortcodes

One of the delights of using blogdown to create blogs or websites is that it allows access to Hogo shortcodes which automatically create an HTML snippet based on the parameters you provide. You can even create your own, if you are up to it Here are a few examples for use in RMarkdown. Check out the blogdown package and Hugo documentation for more detail Youtube I tend to use the vembedr package but this is an alternative

Read more

Share Comments

EPL Week 4

Game of the week Stoke City 2-2 Manchester United United’s first real test. Still look going forward but defensive frailties may be exposed by top opposition

It must be September - Kane starts scoring The first one was a bit of a fluke but he reaches the 80 goal mark at a younger age than any who have reached that level in fewer appearances

Read more

Share Comments

EPL Week 3

Game of the week A slightly fortuitous win for Manchester City. View the highlights with a Russian commentary

Arsenal leaking goals Arsenal have gone from edging a seven-goal thriller against Leicester to a pummelling at the hands of Liverpool, via an unhappy trip to Stoke. Over this period, they have conceded eight goals. How does that stack up over any three game stretch for them or any other team.

Read more

Share Comments

EPL Week 2

Round 2 Not so many shocks in Round 2. Three teams remain with 100% records. Manchester United have looked the most impressive and it is not until week 8 that they meet any of the five teams that finished above them last year. Huddersfield manager David Wagner will probably just be grateful to have six points in the bag so soon and Tony Pulis will be looking to put his feet up even earlier than usual as his WBA teams tend to do once they reach the 40 point safety level

Read more

Share Comments

EPL Week 1

Round 1 Well we’re back with an exciting start to the new season. Manchester United turned in their best performance in years and Huddersfield had a dream return to the top tier. Some things remain the same though with Dele Alli conning Shelvey into a dismissal and Liverpool conceding from corners Game of the Week Arsenal and Leicester swapping blows with the Gunners emerging victorious

Read more

Share Comments

EPL 2017/18

With the new Premier League season kicking off, I plan to produce plenty of posts over the coming months I have yet to organize it all but the idea is to present tables and charts without embedded code. Hopefully, I will get around to publishing it on Github So let’s start of with a couple of different areas of interest

Starting survivors 220 keen players will start the season - but how often does the Game one starting lineup reflect who plays most for the team throughout the season?

Read more

Share Comments

StatCan API's Discovered

My last post was a first look at StatCan data which highlighted that there was a lot of data available but that it was not necessarily easily available or perfectly presented Since then (and apologies where due), I have come across a couple of APIs First-off, StatCan do have a developers page one of which provides access to hundreds of indicators in JSON format.

Read more

Share Comments