Blog Archives

The leaflet package for online mapping in R

January 31, 2015
By
The leaflet package for online mapping in R

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...

Read more »

Practical introduction to Shiny – workshop write-up

January 21, 2015
By
Practical introduction to Shiny – workshop write-up

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 b) completely new to shiny. This article provides resources for...

Read more »

R, an Integrated Statistical Programming Environment and GIS

November 27, 2014
By
R, an Integrated Statistical Programming Environment and GIS

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 Geographical Information System...

Read more »

Basic mapping and attribute joins in R

November 9, 2014
By
Basic mapping and attribute joins in R

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 implemented with...

Read more »

‘Open sourcing’ microsimulation with R

October 23, 2014
By
‘Open sourcing’ microsimulation with R

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. Microsimulation, as represented by the International Microsimulation Association...

Read more »

Newcastle R course, a write-up

September 22, 2014
By

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,...

Read more »

ASDAR book Review

September 8, 2014
By
ASDAR book Review

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,...

Read more »

Clipping spatial data in R

July 28, 2014
By
Clipping spatial data in R

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 by bounding boxes...

Read more »

Consistent naming conventions in R

July 15, 2014
By
Consistent naming conventions in R

Naming conventions in R are famously anarchic, with no clear winner and multiple conventions in use simultaneously in the same package. This has been written about before, in a lucid article in the R Journal, a detailed exploration of names in R source code hosted on CRAN and general discussion on stackoverflow. Basically, there are 5 naming...

Read more »

Cleaning up oversized github repositories for R and beyond

June 25, 2014
By
Cleaning up oversized github repositories for R and beyond

The version control system Git is an amazing piece of software for tracking every change that you make to a project and saving its entire history. It is incredibly useful, for users of R and other programming languages, leading it shoot from 0 market share in 2005 (when it was first released) to market domination in one short decade. However, Git can cause confusion....

Read more »