5
I have a table. dta that I already imported into the R. One of the columns of this file is called "Mun" and has the code of the municipalities of Brazil, a number of 7 digits.
I lowered the Shapefile of the website of IBGE
that comes all files: .cpj
, .dbf
, .prj
, .shp
, .shx
I used the maptools
and imported the map to the R
. The map already has the information codes of municipalities as: CD_GEOCMU
require(maptools)
mapa<-readShapeSpatial(file.choose())
My file has over 4 million data with their respective county codes. I need to put this data on the map with a color scale to be able to see the distribution of this data in Brazil legally, but I have no idea how to do that. I really appreciate it if someone can help me.