Publications by mikerspencer
PDF editing
I had to produce a pdf report at work this week. The report was written in MS Word, and the covers produced in some vector graphics software. Both Word and the SVG software are able to create pdf files, but how to merge them together? I usually use pdfarranger for adding/removing pages of pdfs. It’s a neat little tool, but it turns out it does ...
1352 sym R (143 sym/1 pcs) 4 img
A technical interview question
I was browsing #rstats on Twitter recently and came across this question: Looking for R help! Does anyone have a line of code for what’s listed in column E here? I want to divide column A by B if column D is positive, and vice versa if D is negative. Hoping to use mutate and case_when. #RStats #Rhelp #dplyr pic.twitter.com/XAtePjTl4v— Jamie ...
1535 sym R (234 sym/1 pcs)
Bump chart of Scottish greenhouse gas emissions
The Ferret ran a piece today on Scotland’s greenhouse gas emissions. They did a great job of making their source data available, either through links or embedded into the their charts. I liked the first chart on the contributions of different sectors to the overall total, and thought it might work well as a bump chart. I’ve used bump charts p...
1125 sym R (852 sym/1 pcs) 2 img