Re: [R] Choropleth in R

2011-08-30 Thread Oscar PerpiƱan Lamigueiro
You can use spplot from sp. Some examples: http://blog.revolutionanalytics.com/2009/10/geographic-maps-in-r.html http://ryouready.wordpress.com/2009/11/16/infomaps-using-r-visualizing-german-unemployment-rates-by-color-on-a-map/ http://news.mrdwab.com/2010/05/16/choropleth-party-with-r/ Best, Os

Re: [R] Choropleth in R

2011-08-26 Thread Reza Salimi-Khorshidi
Thanks Jean. This is really helpful; it does the job (almost) at least for the initial analyses. However, I think I will need to do more research on the choropleth after my initial analyses. Best, Reza [[alternative HTML version deleted]] __ R-h

Re: [R] Choropleth in R

2011-08-25 Thread Jean V Adams
It sounds like you're looking for a heatmap type of overlay, not a choropleth map, given that you have a collection of coordinates. If that is correct, then something like this might help. df <- structure(list(long = c(-4.45, -5.04, -4.41, -4.7, -3.87, -2.67, -4, -4.37, -3, -3.04, -1.71, -1.26

Re: [R] Choropleth in R

2011-08-25 Thread Reza Salimi-Khorshidi
Thanks Jean, but this package appears to be perfect for the US + a couple of other country that unfortunately UK is not one of them. What I want is a solution that takes a list of coordinates/postcodes/cities and a list of values and gives me a colourful UK map. Any thoughts? Cheers On Thu, Aug 25

Re: [R] Choropleth in R

2011-08-25 Thread Jean V Adams
Check out the maps package for a choropleth map. Specifically the map() function (and its argument col=). ?map Check out the image() function for a heat map which can be overlaid. ?image Jean Reza Salimi-Khorshidi wrote on 08/25/2011 09:00:04 AM: > > Hi all, > I would like to use

[R] Choropleth in R

2011-08-25 Thread Reza Salimi-Khorshidi
Hi all, I would like to use R in order to generate a Heatmap/Choropleth overlaid on the UK map. Can someone please help with finding the right package/code? Any help is much appreciated. Best, Reza [[alternative HTML version deleted]] __ R-help@