« What programmers should know about Statistics | Main | Introduction to R webinar today, slides available »

January 27, 2010


TrackBack URL for this entry:

Listed below are links to weblogs that reference How to combine Google maps and data in R:


Feed You can follow this conversation by subscribing to the comment feed for this post.

Also, see here for a posting from 2008 to this effect.

This is very nice, and I just tested it out on creating some detailed information on a bicycle route (such as local gradients, special symbols every 5 miles, and so on).

However, it is not clear to me if this constitutes legal use. The Google link you provide (with the space before "maps" removed) suggests to me that use on a website (only legal place for this?) needs to directly include a URL, that is a direct link to Google (not just a link to a png file, say).

Also, see (left-hand side of the Google link): Google Static Maps API,Developer's Guide: http://code.google.com/apis/maps/documentation/staticmaps/.

If so, this seems like R would not be a good fit.


Another solution is to use plotGoogleMaps package. It creates web map with custom layers from R sp data. it solution to create a web map by one command.

Package is available from

In page http://blog.revolutionanalytics.com/2010/01/how-to-combine-google-maps-and-data-in-r.html where it reads "(You need to sign up for a free Google API key first, though.)" the link to the Google API key is broken. It should be http://code.google.com/apis/maps/signup.html but there is a space before "maps".

Thanks, Paulo - I fixed the broken link above.

The comments to this entry are closed.

R for the Enterprise

Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid

Search Revolutions Blog