Making Maps with R

[This article was first published on Spatial Analysis » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

***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 their blog: Spatial Analysis » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)