Publications by Andrew Collier

R Recipe: Aligning Axes in ggplot2

27.05.2015

Faceted plots in ggplot2 are phenomenal. They give you a simple way to break down an array of plots according to the values of one or more categorical variables. But what if you want to stack plots of different variables? Not quite so simple. But certainly possible. I gathered together this solution from a variety of sources on stackoverflow. To ...

1669 sym R (610 sym/6 pcs) 4 img

Comrades Marathon Medal Predictions

28.05.2015

With only a few days to go until race day, most Comrades Marathon athletes will focusing on resting, getting enough sleep, hydrating, eating and giving a wide berth to anybody who looks even remotely ill. They will probably also be thinking a lot about Sunday’s race. What will the weather be like? Will it be cold at the start? (Unlikely since i...

6285 sym 12 img

Hosting Shiny on Amazon EC2

30.05.2015

I recently finished some work on a Shiny application which incorporated a Random Forest model. The model was stored in a RData file and loaded by server.R during initialisation. This worked fine when tested locally but when I tried to deploy the application on shinyapps.io I ran into a problem: evidently you can only upload server.R and ui.R file...

3106 sym R (203 sym/3 pcs) 16 img

R Recipe: RStudio and UNC Paths

04.06.2015

RStudio does not like Uniform Naming Convention (UNC) paths. This can be a problem if, for example, you install it under Citrix. The solution is to create a suitable environment file. This is what worked for me: I created an .Renviron file in my Documents folder on the Citrix remote drive. The file had the following contents: R_LIBS_USER="H:/myCi...

950 sym R (95 sym/1 pcs)

Amazon EC2: Upgrading R

19.06.2015

After installing R and Shiny on my EC2 instance I discovered that the default version of R was a little dated and I wanted to update to R 3.2.0. It’s not terribly complicated, but here are the steps I took. First, become root. $ sudo /bin/bash Remove the old version of R. # apt-get remove r-base-core Edit /etc/apt/sources.list and add the fol...

1230 sym R (399 sym/6 pcs)

Review: Machine Learning with R Cookbook

03.07.2015

“Machine Learning with R Cookbook” by Chiu Yu-Wei is nothing more or less than it purports to be: a collection of 110 recipes for applying Data Analysis and Machine Learning techniques in R. I was asked by the publishers to review this book and found it to be an interesting and informative read. It will not help you understand how Machine Lea...

2775 sym

Constructing a Word Cloud for ICML 2015

10.07.2015

Word clouds have become a bit cliché, but I still think that they have a place in giving a high level overview of the content of a corpus. Here are the steps I took in putting together the word cloud for the International Conference on Machine Learning (2015). Extract the hyperlinks to the PDFs of all of the papers from the Conference Programm...

1825 sym R (174 sym/1 pcs) 4 img

IEEE Spectrum Puts R in 6th Place

25.07.2015

R has moved up three positions to 6th place on IEEE Spectrum ranking. How long will it be before Julia is on the list? The post IEEE Spectrum Puts R in 6th Place appeared first on Exegetic Analytics. Related To leave a comment for the author, please follow the link and comment on their blog: Exegetic Analytics » R. R-bloggers....

625 sym 2 img

urlshorteneR: A package for shortening URLs

14.09.2015

This is a small package I put together quickly to satisfy an immediate need: generating abbreviated URLs in R. As it happens I require this functionality in a couple of projects, so it made sense to have a package to handle the details. It’s not perfect but it does the job. The code is available from github along with vague usage information. I...

1172 sym R (570 sym/2 pcs)

#MonthOfJulia Day 17: Datasets from R

17.09.2015

R has an extensive range of builtin datasets, which are useful for experimenting with the language. The RDatasets package makes many of these available within Julia. We’ll see another way of accessing R’s datasets in a couple of days’ time too. In the meantime though, check out the documentation for RDatasets and then read on below. As alwa...

1767 sym Python (8079 sym/5 pcs) 2 img