Blog Archives

Doodling With 3d Animated Charts in R

July 22, 2015
By
Doodling With 3d Animated Charts in R

Doodling with some Gapminder data on child mortality and GDP per capita in PPP$, I wondered whether a 3d plot of the data over the time would show different trajectories over time for different countries, perhaps showing different development pathways over time. Here are a couple of quick sketches, generated using R (this is the

Read more »

Detecting Undercuts in F1 Races Using R

July 11, 2015
By
Detecting Undercuts in F1 Races Using R

One of the things that’s been on my to do list for some time has been the identification of tactical or strategic events within a race that might be detected automatically. One such event is an undercut described by F1 journalist James Allen in the following terms (The secret of undercut and offset): An undercut

Read more »

Sports Data and R – Scope for a Thematic (Rather than Task) View? (Living Post)

July 7, 2015
By
Sports Data and R – Scope for a Thematic (Rather than Task) View? (Living Post)

Via my feeds, I noticed a package announcement today for cricketR!, a new package for analysing cricket performance data. This got me wondering (again!) about what other sports related packages there might be out there, either in terms of functional thematic packages (to do with sport in general, or one sport in particular), or particular

Read more »

Running RStudio on Digital Ocean, AWS etc Using Tutum and Docker Containers

June 24, 2015
By
Running RStudio on Digital Ocean, AWS etc Using Tutum and Docker Containers

Via RBloggers I noticed a tutorial today on Setting Rstudio server using Amazon Web Services (AWS). In the post Getting Started With Personal App Containers in the Cloud I described how I linked my tutum account to a Digital Ocean hosting account and then launched a Digital Ocean server. (How to link tutum to Amazon

Read more »

Spotting Potential Battles in F1 Races

June 10, 2015
By
Spotting Potential Battles in F1 Races

Over the last couple of races, I’ve started trying to review a variety of battlemaps for various drivers in each race. Prompted by an email request for more info around the battlemaps, I generated a new sketch charting the on track gaps between each driver and the lap leader for each lap of the race

Read more »

Notebooks, knitr and the Language-Markdown View Source Option…

June 8, 2015
By
Notebooks, knitr and the Language-Markdown View Source Option…

One of the foundational principles of the web, though I suspect ever fewer people know it, is that you can “View Source” on a web page to see what bits of HTML, Javascript and CSS are used to create it. In the WordPress editor I’m currently writing in, I’m using a Text view that lets

Read more »

IPython Markdown Opportunities in IPython Notebooks and Rstudio

June 6, 2015
By
IPython Markdown Opportunities in IPython Notebooks and Rstudio

One of the reasons I started working on the Wrangling F1 Data With R book was to see what the Rmd (RMarkdown) workflow was like. Rmd allows you to combine markdown and R code in the same document, as well as executing the code blocks and then displaying the results of that code execution inline

Read more »

Keeping Track of an Evolving “Top N” Cutoff Threshold Value

April 26, 2015
By
Keeping Track of an Evolving “Top N” Cutoff Threshold Value

In a previous post (Charts are for Reading), I noted how it was difficult to keep track of which times in an F1 qualifying session had made the cutoff time as a qualifying session evolved. The problem can be stated as follows: in the first session, with 20 drivers competing, the 15 drivers with the

Read more »

Scraping Web Pages With R

April 15, 2015
By
Scraping Web Pages With R

One of the things I tend to avoid doing in R, partly because there are better tools elsewhere, is screenscraping. With the release of the new rvest package, I thought I’d have a go at what amounts to one of the simplest webscraping activites – grabbing HTML tables out of webpages. The tables I had

Read more »

Wrangling Complex Spreadsheet Column Headers

April 14, 2015
By
Wrangling Complex Spreadsheet Column Headers

Not a little p****d off

Read more »