Publications by Robin Lovelace - R

Clipping spatial data in R

28.07.2014

This miniature vignette shows how to clip spatial data based on different spatial objects in R and a ‘bounding box’. Spatial overlays are common in GIS applications and R users are fortunate that the clipping and spatial subsetting functions are mature and fairly fast. We’ll also write a new function called gClip(), that will make clipping ...

3499 sym R (1572 sym/8 pcs) 12 img

ASDAR book Review

08.09.2014

I was recently invited to write a book review for Applied Spatial Analysis and Policy (ASAP). The book, I conclude, “is the authoritative resource on R’s spatial capabilities” and should be of interest to many R users. Below is a preprint of the full review, now published on ASAP’s website. As a geographer and heavy R user, I was natural...

5856 sym R (5 sym/1 pcs) 2 img

Newcastle R course, a write-up

22.09.2014

I recently attended a week-long R course in Newcastle, taught by Colin Gillespie. It went from “An Introduction to R” to “Advanced Graphics” via a day each on modelling, efficiency and programming. Suffice to say it was an intense 5 days! Overall it was the best R course I’ve been on so far. I’d recommend it to others,...

7342 sym R (2672 sym/11 pcs)

‘Open sourcing’ microsimulation with R

23.10.2014

These are the slides from a presentation today at the European conference of the IMA, held in Maastricht, 23rd to 24th October, 2014. Microsimulation, as its name suggests, is about modelling things at the individual-level. In practice, this usually means estimating the characteristics of people using statistical or econometric techniques. Micros...

5282 sym 2 img

Basic mapping and attribute joins in R

09.11.2014

This post is based on the free and open source Creating-maps-in-R teaching resource for introducing R as a command-line GIS. R is well known as an language ideally suited for data processing, statistics and modelling. R has a number of spatial packages, allowing analyses that would require hundreds of lines of code in other languages to be implem...

6083 sym R (5249 sym/10 pcs) 10 img

R, an Integrated Statistical Programming Environment and GIS

27.11.2014

This article was originally published in Geoinformatics magazine. R is well known as a powerful, extensible and relatively fast statistical programming language and open software project with a command line interface (CLI). What is less well known is that R also has cutting edge spatial packages that allow it to behave as a fully featured Geograp...

7356 sym R (360 sym/3 pcs) 2 img 1 tbl

Practical introduction to Shiny – workshop write-up

21.01.2015

I recently delivered a workshop on a practical introduction to shiny, an R package that enables development, testing and deployment of interactive web applications. Delivered at the University of Sydney’s Institute for Transport and Logistics Studies (ITLS), it was designed for people who are a) fairly new to R (which can seem intimidating) and...

3914 sym 2 img

The leaflet package for online mapping in R

31.01.2015

It has been possible for some years to launch a web map from within R. A number of packages for doing this are available, including: RgoogleMaps, an interface to the Google Maps api leafletR, an early package for creating Leaflet maps with R rCharts, which can be used as a basis for webmaps In this tutorial we use the new RStudio-supported leaf...

4644 sym R (1485 sym/7 pcs) 2 img

R vs QGIS for sustainable transport planning

19.04.2015

The 23rd iteration of the GIS Research UK conference (#GISRUK) conference was the largest ever. 250 researchers, industry representatives and academics attended from the vibrant geospatial research communities in the UK, Europe and beyond. GISRUK has become a centrepoint for discussion of new methods, software and applications in the field. I was...

7255 sym 6 img

Learning about classes in R with plot.bike()

16.05.2015

A useful feature of R is its ability to implement a function differently depending on the ‘class’ of the object acted on. This article explores this behaviour with reference to a playful modification of the ‘generic’ function plot() to allow plotting of cartoon bicycles. Although the example is quite simple and fun, the concepts it touche...

6918 sym R (732 sym/6 pcs) 6 img