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@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~

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to