Making Maps with R

January 13, 2010
By

(This article was first published on Spatial Analysis » R, and kindly contributed to R-bloggers)

***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 GIS package. I am often asked how to do this so I have included here the code I used to create the map you see below. It should be quite straightforward to substitute my data with your own shapefile and alter some of the parameters such as the colour and the break points to produce your own map. For those interested in more advanced spatial analysis with R I recommend this book.

1801

To leave a comment for the author, please follow the link and comment on his blog: Spatial Analysis » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , , , , , ,

Comments are closed.