Articles by James

Mapping London’s Population Change 1801-2030

February 16, 2011 | James

Buried in the London Datastore are the population estimates for each of the London Boroughs between 2001 – 2030. They predict a declining population for most boroughs with the exception of a few to the east. I was surprised by this general decline and also the numbers involved- I expected larger changes from ... [Read more...]

OpenData + R + Google = Easy Maps

January 11, 2011 | James

The release of the R package “googleVis” has made the production of interactive maps through Google’s Chart Tools a simple task. Ignoring the some basic data manipulation the below map... [Read more...]

R interface to Google Chart Tools

January 10, 2011 | James

Hans Rosling eat your heart out! It is now possible to interface R statistics software to Google’s Gapminder inspired Chart Tools. The plots below were produced using the googleVis R package and three datasets from the Gapminder website. The first shows the relationship between income, life expectancy and population ... [Read more...]

Boris Bikes/Barclays Cycle Hire Average Journey Times

January 6, 2011 | James

The visualisation above shows the average relative duration of Boris Bikers’ weekday journeys over a 4 month period at hourly intervals. For each time step the average journey time (in seconds) from each docking station has been calculated.This information is interesting because it shows the preference for short journeys around ... [Read more...]

Exporting KML from R

January 2, 2011 | James

Google Earth has become a popular way of disseminating spatial data. KML is the data format required to do this. It is possible to load almost any type of spatial...
[Read more...]

Installing rgdal on Mac OS X

November 2, 2010 | James

After running a spatial data analysis with R session today, it became apparent that there are one or two teething problems installing the important rgdal package on Mac OS X operating systems. The usual install.packages(“rgdal”) won’t work. My colleague Jon Reades did some digging around to find ... [Read more...]

Maps with ggplot2

September 27, 2010 | James

The ggplot2 package offers powerful tools to plot data in R. The plots are designed to comply with the “grammar of graphics” philosophy and can be produced to a publishable level relatively easily. For users wishing to create a good map without too much thought I would recommend this worksheet. ...
[Read more...]

Clipping a Surface By a Polygon

September 8, 2010 | James

Background: A common function in standard GIS software enables users to create a raster surface and extract values or clip it based on a set of polygons. This may be used in cases where you want analysis to be constrained to within a town’s boundaries or a coastline. This ... [Read more...]

Writing a Spatial Function: The Location Quotient

September 7, 2010 | James

Background: In some cases it is necessary to conduct the same analysis multiple times on either the same or different data. In such circumstances it is worth writing a function to simplify the code. In this example the location quotient provides a simple calculation easily written in to a function. ... [Read more...]

R Maps

September 6, 2010 | James

This is an updated version of my Making Maps with R tutorial. I think the code is lot simpler and it also includes some data for you to play around with. Background: Spatial data are becoming increasingly common, as are the tools available in R to process it. Of course ... [Read more...]

Free GIS Resources

January 26, 2010 | James

Over the last couple of days I have utilised some excellent free GIS resources. I have listed these and some others below. Geospatial Analysis: This is the free online version of de Smith, Longley and Goodchild’s excellent book by the same title. It provides full coverage of current GIS ... [Read more...]

Making Maps with R

January 13, 2010 | James

***This tutorial has been updated, please click here*** I frequently use R (a free software environment for statistical computing and graphics) for data analysis.  As almost all my data are spatial it is often good to produce a map of the results without having to export the data into another ... [Read more...]

Applied Spatial Data Analysis with R

August 25, 2009 | James

I have just reviewed the book Applied Spatial Data Analysis with R which has been published in the September2009  issue of the Royal Statistical Society’s Significance magazine. Applied Spatial Data Analysis with R is an accessible text that demonstrates and explains the handling of spatial data using the R ... [Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)