Publications by HighlandR
Even Simpler SQL
I’ve had some feedback on the last post, and rather than repeat the same thing multiple times, I’m going all @drob, and writing this instead.. When I tweeted out the link to my post I gave it the tag line “why I’d rather write dplyr than SQL”. What I couldn’t fit in to the tweet was that this was based on the caveat that some of the S...
3628 sym R (1510 sym/4 pcs)
Tidily evaluated ggplot2
Test driving the new release of ggplot2 – A new release of ggplot2 Now that tidy evaluation is baked into ggplot2, as of TODAY, let’s take it for a spin: ggplot2 3.0.0 %>% create function %>% test function %>% end library(dplyr) library(ggplot2) library(tidyr) library(tibble) data <- list(fdeaths,mdeaths,ldeaths) #time series data- ...
649 sym R (1086 sym/2 pcs) 2 img
More tidy evaluation with ggplot2
Following up the follow up – After my previous post, my good friend David Henderson asked a good question on Twitter ( it happens :)) To be honest, I hadn’t even noticed there was no tilde (the ‘~’ ) in my call to facet_wrap. So I did a little experiment : library(dplyr) library(ggplot2) library(tidyr) library(tibble) data ...
1548 sym R (1293 sym/3 pcs) 4 img
Mid Table Mediocrity
Visualising potential winners in the Scottish Championship – Last August, I was given a surprise gift of a season ticket to watch my local football team, Inverness Caledonian Thistle. They’d been relegated from the top league in Scotland the season before, and needed all the local support they could get. In truth, the gift ( from my ...
5092 sym R (1999 sym/5 pcs) 18 img
Mid Table Mediocrity
Visualising potential winners in the Scottish Championship – Last August, I was given a surprise gift of a season ticket to watch my local football team, Inverness Caledonian Thistle. They’d been relegated from the top league in Scotland the season before, and needed all the local support they could get. In truth, the gift ( from my ...
4890 sym R (1999 sym/5 pcs) 18 img
Where am I?
Notes on the here package – The here package is pretty simple ( only 3 functions), but I keep messing things up when I try to create paths with it, so this is my aide-memoire. It might be useful for others too. Here finds the root of your current folder / working directory. If you use Projects in RStudio, that will usually be the root ...
2028 sym R (122 sym/8 pcs)
Where am I?
Notes on the here package – The here package is pretty simple ( only 3 functions), but I cannot remember how to use it to navigate folders, so this is my aide-memoire. It might be useful for others too. Here finds the root of your current folder / working directory. If you use Projects in RStudio, that will usually be the root of your ...
971 sym R (524 sym/1 pcs)
Thoughts on the NHS-R conference
It’s been a few weeks since the first NHS-R conference was held in Birmingham. I co-presented a couple of workshops with Neil Pettinger on visualising patient flow, covering the following importing from Excel (and connecting to SQL Server) dplyr ggplot2 & plotly gifski for basic animation automating reports with officer gganimate demo ti...
2887 sym
Thoughts on the NHS-R conference
It’s been a few weeks since the first NHS-R conference was held in Birmingham. I co-presented a couple of workshops with Neil Pettinger on visualising patient flow, covering the following importing from Excel (and connecting to SQL Server) dplyr ggplot2 & plotly gifski for basic animation automating reports with officer gganimate demo ti...
2887 sym
Automatic (slides) for the people
Creating and saving multiple plots to Powerpoint At the NHS R conference we delivered a session on animating patient flow. This started with a single plot showing all patient movements, and then I demonstrated the ability to create a faceted plot. But, with many different areas, and a small plot space, the faceted plot was a bit meh really. So wh...
1429 sym R (4976 sym/1 pcs)