[R] Map of Europe at NUTS 2 Level
Miluji Sb
milujisb at gmail.com
Thu Mar 10 12:06:38 CET 2016
Dear all.
I would like to draw a map of France, Italy, Spain, and Portugal at NUTS 2
level. I used the following code:
library(“rgdal”)
library(“RColorBrewer”)
library(“classInt”)
#library(“SmarterPoland”)
library(fields)
# Download Administrative Level data from EuroStat
temp <- tempfile(fileext = ".zip")
download.file("
http://ec.europa.eu/eurostat/cache/GISCO/geodatafiles/NUTS_2010_60M_SH.zip
",
temp)
unzip(temp)
# Read data
EU_NUTS <- readOGR(dsn = "./NUTS_2010_60M_SH/data", layer =
"NUTS_RG_60M_2010")
# Subset NUTS 2 level data
map_nuts2 <- subset(EU_NUTS, STAT_LEVL_ == 2)
# Draw basic plot
plot(map_nuts2)
This does produce a plot but its rather 'ugle'. Is there any way I can
subset the data further and draw a map for France, Italy, Spain, and
Portugal only? Thank you very much!
Sincerely,
Milu
[[alternative HTML version deleted]]
More information about the R-help
mailing list