# NOT RUN {
library(sp)
data("nuts2006")
# Create a link layer
twincities.sf <- getLinkLayer(x = nuts2.spdf, df = twincities.df[,1:2])
# Plot the links - Twin cities agreements between regions
plot(nuts0.spdf, col = "grey60",border = "grey20")
gradLinkLayer(x = twincities.sf, df = twincities.df,
legend.pos = "topright",
var = "fij", breaks = c(2,5,15,20,30), lwd = c(0.1,1,4,10),
col = "#92000090", add = TRUE)
# }
Run the code above in your browser using DataLab