Articles by biomickwatson

Beautiful boxplots in base R

April 28, 2017 | biomickwatson

As many of you will be aware, I like to post some R code, and I especially like to post base R versions of ggplot2 things! Well these amazing boxplots turned up on github – go and check them out! So I did my own version in base R – check out ... [Read more...]

Reading data from google sheets into R

November 22, 2016 | biomickwatson

Reading data from google sheets into R is something you imagine should be really simple, but often is anything but. However, package googlesheets goes a long way to solving this problem. Let’s crack on with an example. First, install the software: install.packages("googlesheets") We then need an example ... [Read more...]

Creating an image of a matrix in R using image()

October 6, 2016 | biomickwatson

You have a matrix in R, and you want to visualise it – say, for example, with each cell coloured according to the value in the cell.  Not a heatmap, per se, as that requires clustering; just a simple, visual image. Well, the answer is image() – however, there is the slightly ... [Read more...]

Plotting cool graphs in R

August 25, 2016 | biomickwatson

I have to admit to being a bit of a snob when it comes to graphs and charts in scientific papers and presentations.  It’s not like I think I am particularly good at it – I’m OK – it’s just that I know what’s bad.  I’ve seen ...
[Read more...]

Plot your own EU referendum poll results

June 22, 2016 | biomickwatson

Due to the unspeakable horror of the EU referendum, I have to find something to make me feel better.  This poll of polls usually does so, though it is way too close for comfort. Anyway, I took their data and plotted it for myself.  Data and script are on github, ... [Read more...]

Your strongly correlated data is probably nonsense

April 27, 2016 | biomickwatson

Use of the Pearson correlation co-efficient is common in genomics and bioinformatics, which is OK as it goes (I have used it extensively myself), but it has some major drawbacks – the major one being that Pearson can produce large coefficients in the presence of very large measurements. This is best ... [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)