[R-sig-Geo] Represent data on map
Rolando Valdez
rvaldezr at gmail.com
Fri Jan 3 22:00:14 CET 2014
Hi,
I'm trying to represent data (unemployment rate) on a map.
This is what I have:
> library(sp)
> library(maptools)
Checking rgeos availability: TRUE
> map <- readShapeSpatial("ESTADOS")
> read.csv("C:\\Users\\Rolando\\Documents\\Maestría en Economía\\3er Semestre\\AEMT\\desempleo_est.csv")
> spplot(map, c("2000"))
Error en `[.data.frame`(obj at data, zcol) : undefined columns selected
> unem <- read.csv("C:\\Users\\Rolando\\Documents\\Maestría en Economía\\3er Semestre\\AEMT\\desempleo_est.csv")
> names(unem)
[1] "num_est" "est" "X2000" "X2005" "X2010" "X2013"
I hope you can help me, this is my first time in R.
Regards,
Rol~
More information about the R-sig-Geo
mailing list