Skip to content

European Union NUTS2, NUTS3 regions (SHP format)

3 messages · Tomas Zelinsky, Barry Rowlingson

#
2010/8/27 Tomas Zelinsky <tomas.zelinsky at tuke.sk>:
Looking at NUTS_RG_60M_2006.SHP there's a STAT_LEVL_ variable which I
guess is the NUTS level code - this is probably documented in the
meta-data somewhere. So you can do:

 require(rgdal)
 s = readOGR(".","NUTS_RG_60M_2006")
 plot(s[s$STAT_LEVL_==0,])
 plot(s[s$STAT_LEVL_==1,])

 and so on. You might also want to extract just the polygons for a
particular level into a new object:

 n2 = s[s$STAT_LEVL_==2,]

 You can use lwd=X in plot for sp objects to change the line width.

Barry
#
Thank you Barry for your help. It works now. I'm just still not sure how 
to use different widths of lines for different statistical levels. 
Hopefully I'll figure it out soon.

Thanks again.

Tomas




Barry Rowlingson  wrote / nap?sal(a):