— Jose Gonzalez

Poverty and Crime in Mexico – Interactive Map

Poverty and crime in Mexico

How safe is Mexico? That is a frequent question people ask me. There is even a  website about it  (see this blog post). So I’ve decided it was time to go one step further and make an interactive map (click here for full screen) of poverty and crime in Mexico.

The objective was to see which municipalities have higher crime rates and visually check if municipalities with higher crime rates also have high poverty rates. While unfortunately,  the most recent poverty data at the municipality level is for 2010 while the crime data, at the same level, is only available for 2011, 2012, 2013, I was still able to glean some interesting insights.

The interactive map´s main take away is that high rates of selected crimes are concentrated in just a few municipalities. Moreover, there appears to be no direct link to high poverty rates.

To do the analysis I used R, QGIS and TileMill, all that code is freely available in my github account. If you are interested in learning more about how I made the map, keep reading!

For the poverty map, I used data from CONEVAL and INEGI to put together a map similar to the one in my previous blog post.

I wanted to use data from crimes published by SEGOB. Nevertheless, the website is frequently unavailable, so I had to use the data published by  Diego Valle-Jones. This data has selected crimes for “fuero comun” (ordinary crimes such as robbery or assault) for the period 2011, 2011 and 2013 per municipality. In total there were 1,157,425 for the period 2011-2013. The diagram below shows the selected crime types (Spanish only, sorry!).

Selected crimes

There is much analysis that can be done with the data, and indeed keep your eyes out for some coming in a blog post soon!  Meanwhile, however, please feel free to run your own analysis and let me know if you find something cool. Happy coding…

3 comments
  1. DrBazUK says: March 7, 20146:03 am

    Hi Jose,
    You need to update the website link to point to the tiles version of your site:
    https://a.tiles.mapbox.com/v3/josecarlosgonz.heogo3n7/page.html#6/21.963/-99.976
    NB Not the editor role 🙂 – Great map though – like the concept and will “borrow” the idea/technique.

    All the best,
    Barry.

    • Jose says: March 7, 20148:23 am

      Thanks for the comment Barry, I just updated the link.

  2. Roberto says: March 7, 20146:04 pm

    Esta genial este trabajo Jose !!! Este fin le voy a dar una checada a tu sitio. Saludos

Submit comment