Posted on Sun 27 May 2018

The most polluted cities in Mexico

PM10 pollution in Guadalajara, Jalisco

I’ve created an R package to download air quality data from the website of the Sistema Nacional de Información de la Calidad del Aire and published it to CRAN. To install it you have to type the following:


you can also install the development version by typing:

if (!require(devtools)) {
Download from CRAN
Browse source code
Report bugs

The Instituto Nacional de Ecología y Cambio Climático (INECC) created the SINAICA website to gather the information generated by the more than a hundred air quality monitoring stations located throughout Mexico. The pollution and meteorological information is generated by the monitoring stations run by the state and local authorities, who then transmit it to SINAICA.

The rsinaica package provides tools for downloading that information; for example, you can easily create pollution maps:

Map of PM10 pollution in Guadalajara during 2017

And rank cities by how polluted they are (be sure to click the links):


Valle de México is the most ozone-polluted city in Mexico


Monterrey is the most PM10-polluted city in Mexico


Toluca is the most PM2.5-polluted city in Mexico

Guadalajara gets a special mention since they managed to take second place in all categories. Congratulations and better luck next year!

Toluca is the most PM2.5-polluted city in Mexico

The package also has an official website with several examples:

Unless otherwise stated, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. Privacy policy

Disclaimer: This website is not affiliated with any of the organizations or institutions to which Diego Valle-Jones belongs. All opinions are my own.

Special Projects:

Blogs I like: