Articles by Gary Hutson

Deploying a ML model in R

August 9, 2019 | Gary Hutson

As a product of a series of training sessions Draper & Dash have been undertaking on Machine Learning using R – a candidate from the course asked “how do you split a model to later be used in a live / production environment?”. This post aims to answer that question: I hope you ... [Read more...]

RODBC helper function

May 31, 2019 | Gary Hutson

The number of times I have to connect to SQL and I forget part of the RODBC command to connect to an internal data table. As part of a project I am working on I have been connecting to lots of different sources and became tired of typing lots of ... [Read more...]

NHS-R Community: Up the R-evolution

January 29, 2019 | Gary Hutson

It seems like two seconds ago since I was frantically preparing slides for the first NHS community. Wow – what an experience and kudos to the team @NHS-R Community for arranging it. The full content of the event has been posted: https://nhsrcommunity.com/nhs-r-conference-9-october-2018/. What a fantastic event this ... [Read more...]

A simple function to create nice correlation plots

November 30, 2018 | Gary Hutson

The problem I was working with a dataset where I wanted to assess the correlation of different variables in R. As much as I like R – the outputs from the console window leave something to be desired (in terms of data visualisation). Therefore, I wanted a way to visualise these ... [Read more...]

DPLYR: A Beginners Guide

May 24, 2018 | Gary Hutson

What is DPLYR? Dplyr is a grammar of data manipulation, providing a consistent set of verbs that help you solve the most common data manipulation challenges. The next series of examples will show how you can use the shortcuts in Dplyr to achieve the results of traditional R data manipulation, ...
[Read more...]

Violin and density plots in ggplot2

May 17, 2018 | Gary Hutson

Violin Plots This chart is a combination of a Box Plot and a Density Plo that is rotated and placed on each side, to show the distribution shape of the data. The thick black bar in the centre represents the interquartile range, the thin black line extended from it represents ...
[Read more...]

Box Plots in ggplot2

May 16, 2018 | Gary Hutson

Setting up the plot The box plot, in ggplot2, can be really powerful and useful for analysing variation. I will show a few examples of different types of box plots in ggplot2. Basic Box Plot library(ggplot2) theme_set(theme_classic()) # Plot plot [Read more...]
1 2

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)