Articles by CL

Another take on building a multi-lingual shiny app

November 8, 2014 | CL

I was reading this interesting post about how to build a multi-lingual Shiny app. I’m also building a multi-lingual Shiny app and came up with slightly different take on it. First, I don’t use a function for finding the translation, … Continue reading → [Read more...]

A two-hour online course on ggplot2 and Shiny

June 11, 2014 | CL

I’ve just published a video course with Packt Publishing about ggplot2 and Shiny! In just two hours, you’ll get to learn the popular R packages ggplot2 and Shiny, as well as how to put them together to build interactive webpages. … Continue reading → [Read more...]

A very quick introduction to ggplot2

October 14, 2012 | CL

I gave a very brief 10mn introduction to ggplot2 at the Birmingham R user group meeting on Monday. The aim was to give a headstart to R users who’ve heard of ggplot2 but never got around to trying it. I … Continue reading → [Read more...]

An exercise in R using local open data

June 17, 2012 | CL

Last week I went to the “Government Open Data Hack Day” ([@,#]godhd on twitter) in Birmingham (UK), organised by Gavin Broughton and James Catell. The idea was to get hold of local open data and try and make use of … Continue reading → [Read more...]

spam evolution

April 26, 2012 | CL

Despite some rather modest protection (like a simple captcha), I still receive spammy comments on this blog every now and again. They’re easily spotted and actually never appear on the website. There’s obviously an incentive for the spammer to post … Continue reading → [Read more...]

A graphical overview of your MySQL database

March 18, 2012 | CL

If you use MySQL, there’s a default schema called ‘information_schema‘ which contains lots of information about your schemas and tables among other things. Recently I wanted to know whether a table I use for storing the results of a large … Continue reading → [Read more...]

polar histogram: pretty and useful

February 21, 2012 | CL

Do you have tens of histograms to show but no room to put them all on the page? As I was reading this paper in Nature Genetics, I came across a simple and clever way of packing all this information … Continue reading → [Read more...]

Winning from losing

January 19, 2012 | CL

By following twitter’s #rstats hashtag (rss feed), I recently came across a very interesting R-related blog: datanalytics.com. The first post I read from it was about setting up an on-line reading group to go through the excellent “The Elements of … Continue reading → [Read more...]

Anarchy Golf! And that’s your Sunday gone.

October 29, 2011 | CL

I like to follow good practice when I program. I want my code to be readable, properly indented, modular and re-usable. And I want my variables to have descriptive names. There’s nothing that I hate moderately dislike more than arbitrary … Continue reading → [Read more...]

plyr, ggplot2 and triathlon results, part II

October 13, 2011 | CL

I ended my previous post by mentioning how one could imagine other ways of looking at the triathlon data with plyr and ggplot2. I couldn’t help but carry on playing with it so here are more stats and graphs from … Continue reading → [Read more...]

A first go at ‘manipulate’ in RStudio

August 26, 2011 | CL

Something I’m missing from R (especially coming from Mathematica) is the ability to quickly build interactive graphs, which I find very useful for getting a good intuition of the impact of parameters on a mathematical function. Richie Cotton’s post about … Continue reading → [Read more...]

Two Castles Run 2011

June 12, 2011 | CL

I did the Two Castles Run today; it’s a 10km race between Warwick and Kenilworth castles. The organizers were very quick to put the results online and even went the extra mile of offering them as a CSV file. It … Continue reading → [Read more...]

An unsurprising year

May 31, 2011 | CL

I’ve received one those FW:…:FW emails yesterday with the following text: 2011 is an unusual year. Add the last two digits of your birth year to the age you will turn on your birthday this year and you’ll get 111! … Continue reading → [Read more...]

Graph Bisection in R

April 14, 2011 | CL

Recently I had to partition a set of SNPs into a training set and a test set. Making a random split would not do: both sets would likely contain very similar SNPs due to linkage disequilibrium (LD), making them non-independent. … Continue reading → [Read more...]

Block diagonal matrices in R

April 13, 2011 | CL

As far as I can tell, R doesn’t have a function for building block diagonal matrices so as I needed one, I’ve coded it myself. It might save someone some time. Example: Let m1 and m2 two square matrices. Selec … Continue reading → [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)