http://staffnet.kingston.ac.uk/~ku45386/R2leaflet.R