Claudia,
I have not worked through the example myself. Since you seem to be getting
errors, perhaps a different example would help. Here are some more
choropleth maps (although these use US states rather than European
countries).
http://blog.revolutionanalytics.com/2009/11/choropleth-challenge-result.html
Jean
On Fri, Nov 1, 2013 at 12:04 PM, <paladini at trustindata.de> wrote:
Hi Jean,
thanks again for your response. As I told you I did the downloads and
double checked if I selected the right directory.
But I noticed right now what happend:
The command in the example is :
eurMap <- readShapePoly(fn="NUTS_2010_**60M_SH/Shape/data/NUTS_RG_60M_**
2010")
But it should be :
eurMap <- readShapePoly(fn="NUTS_2010_**60M_SH/data/ggg/NUTS_RG_60M_**
2010")
Because if you do the downloads and unzip these data there is no such
think as a "Shape" directory.
Now eurMap <- readShapePoly(fn="NUTS_2010_**60M_SH/data/NUTS_RG_60M_2010")
works.
What happens now is that after typing:
eurEduMapDf <- merge(eurMapDf, eurEdu, by.x="id", by.y="GEO")
I get another error message because "eurMapDf" is unknown.
So I supposed it should be:
eurEduMapDf <- merge(eurMap, eurEdu, by.x="id", by.y="GEO")
But this doesn't work either.The error message this time is: undefined
column selected.
Did I do something wrong?
Best regards
Claudia
Zitat von "Adams, Jean" <jvadams at usgs.gov>:
Claudia,
thank you for your advice.
The page looks quite interesting and I tried the example in GNU R. I did
all the downloads.
But
Just in the beginnig after typing
eurMap <- readShapePoly(fn="NUTS_2010_****60M_SH/Shape/data/NUTS_RG_60M_
****
2010")
I get the following error message:
Error in getinfo.shape(filen) : Error opening SHP file
To you have an idea what I did wrong?
Thanks a lot and best regards
Claudia
Zitat von "Adams, Jean" <jvadams at usgs.gov>:
Check out this link for some examples
Jean
On Tue, Oct 29, 2013 at 12:02 PM, <paladini at trustindata.de> wrote:
Hello,
I would like to draw a map of Europe. Each country should be colored
depending on how it scores in an index called GPIndex.
Say a dark red for real bad countries a light red for those which are
not
so bad, light blue for the fairly good ones and so on up to the really
good
ones in a dark blue.
I never worked with geographic maps before so I tried library maps but
I
didn't get far,- especially because all examples I found only seem to
work
for the United states. So I'm a bit lost.
I would be nice if somebody could help me.
Thanking you in anticipation!
Best regards
Claudia