Displaying 2 results from an estimated 2 matches for "importshapefil".
Did you mean:
importshapefile
2014 Mar 12
3
Sobreponer dos mapas
Hola,
Estoy tratando de sobreponer un mapa sobre otro, uno que sirva de ?background? y otro con datos. Mi primer intento lo hice usando el paquete PBSmapping.
Aquí lo que hice:
library(PBSmapping)
estados <- importShapefile(?Entidades_2013.shp") #Aquí cargamos las entidades federativas (32 entidades)
zonas <- importShapefile(?zm.shp?) #Aquí cargamos las zonas metropolitanas del país (345 municipios)
plotPolys(estados, xlab=?Longitud?, ylab=?Latitud?, border=?gray?)
addLines(zonas, col=?red?)
Este es el resul...
2009 Aug 25
1
Help in plotting a legend
...ner and the right corner respectively.
Here's a part of the code I am using:
#empdata has the employee data with the latitude and longitude for each
employee
library(PBSmapping)
addressEvents<-as.EventData(empdataRC,projection=NA)
#myShapeFile is a shape file of Ohio imported using importShapefile
addressPolys<-findPolys(addressEvents,myShapeFile)
myTrtFC<-
table(factor(addressPolys$PID,levels=levels(as.factor(myShapeFile$PID))))
log(myTrtFC)->lTrt
mapColors<-heat.colors(max(lTrt)+1,alpha=.6)[max(lTrt)-lTrt+1]
mapColors[ is.na(mapColors) ] <- "white"
pdf...