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
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
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
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
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
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@
6 matches
Mail list logo