Skip to content
Prev 9136 / 29559 Next

European Union NUTS2, NUTS3 regions (SHP format)

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