About

I am an Assistant Professor in Data Visualization in the Centre for Interdisciplinary Methods at the University of Warwick. You can find out more about me here.

I update this website sporadically with blog posts, tutorials and a list of resources which I use in my own work. You can also follow me on Mastodon or LinkedIn (I also have a twitter which I no longer use).

Resources

This list of resources is very incomplete and out of date! I promise to update them soon …

List of Open Datasets

Research Tools I Use

Latest blog posts

Mar. 1, 2022

Making Animations and Videos in R

This post details how to make animated graphs in R. For the sake of simplicity (and pretty graphics) I don’t use any real data in this post but instead create some random movement patterns using the ambient library - which is explained in the first section. For this we will need: library(ambient) library(dplyr) library(ggplot2) library(data.table) library(magick) # you may need to install imagemagick separately library(gapminder) # you may need to install ffmpeg separately Now lets create some random noise images using the ambient library:

Jun. 30, 2021

Making Bubble Maps with Folium

This post details how to make interactive bubble maps in Python with Folium. But before we jump into using Folium, lets generate some fake data with random geographic locations. import pandas as pd import random import sys import math # A long and lat point around which the random data will be generated # In this case a point in central London. latitude = 51.45 longitude = -0.10 # A function which will generate a random dataset around our long and lat def random_data(nlat, nlong, nrows, nrange): df = pd.

Feb. 28, 2021

Configuring Python to work like ESS mode in Spacemacs

I have found one of the best packages in emacs to be ESS mode which allows me to work seamlessly with R. I much prefer the setup and workflow of ESS than R Studio which I had previously done most of my R coding in. However, I spend most of my time coding in Python in jupyter notebooks. I have tried on several occasions to switch to using jupyter notebooks inside emacs, but it has never quite clicked for me and I’ve always gone back to just working in a browser.

(all posts)