The 74 most violent cities in Mexico

January 14, 2015
By

(This article was first published on Diego Valle's Blog, and kindly contributed to R-bloggers)

I’ve updated the mxmortalitydb package to include 2013 data. This data only package includes all injury intent deaths (accidents, homicides, suicides, and unspcified intent) that were registered in Mexico from 2004 to 2013. You can use the package to calculate changes and trends in homicide rates in the most violent metro areas (or big municipios) or at the national level.

You can also use the package to explore the deaths whose intent was left unspecified (note the large increase in firearm deaths in 2011, the year Mexico had the highest homicide rate in recent history)

And make pretty plots of the most violent metro areas or big municipios which are not part of a metro area (in Mexico by definition a metro area has to consist of more than one municipio, so it is worthwhile to include single municipios with large populations). I should also note that the database only includes deaths where a death certificate was issued, so if there are clandestine mass graves that haven’t been found (as was the case recently in Iguala) or where the deaths somehow were not registered (as was the case with the Taxco mass grave) then the deaths are not included in the counts.

While violence has decreased in recent years it still has a long way to drop before it reaches the levels seen in 2006.

Note the mixed trend in Michoacán.

Do note that the charts of homicides from 2006 were made with the 2010 population according to the CONAPO, so the homicide rate was underestimated by a little bit. Also, rather than using the raw homicide numbers I adjusted them by classifying deaths of unknown intent as described in the mxmortalitydb package and this post.

The code for generating the charts is available from GitHub

To leave a comment for the author, please follow the link and comment on their blog: Diego Valle's Blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)