Reusable R code for data visualisation and analysis