R plot: Comparison of Fairbanks, Alaska and Beijing, China air quality

August 28, 2015
By

(This article was first published on R – SNAP Tech, and kindly contributed to R-bloggers)

Here’s an interesting R plot comparing a specific air pollution metric between Fairbanks, Alaska and Beijing, China. Right off the bat, Beijing obviously has far worse air quality, and more significantly, it is a chronic, daily problem. But it is used for comparison because we already know this is the case.

In Fairbanks, while air quality is known to decrease in very cold weather and the seasonal cycle of winter spikes in the particulate are clear in the plot, this is nothing compared to Beijing’s daily levels year round. On the other hand, lots of summertime smoke from boreal forest fire in interior Alaska can make Fairbanks air quality just as bad as Beijing’s if not worse. This can be seen in 2004, which was a year of record fires in Alaska. 2015 has also been a big fire season, apparent in the plot as well.

aq

In order to plot the most up to date data, multiple sources were merged. A no-intercept regression of the more vetted baseline Fairbanks data on the more recently obtained data dump was fitted. While the latter is not yet a fully cleaned and vetted source, the differences are systematic. A bias in magnitude during the overlapped dates in 2015 suggests a 20 percent boost to particulate levels over what the new preliminary data show.

While the new data dump seems “good enough”, an adjustment can be made with respect to the baseline information. This provides an up to date look at air quality during the 2015 fire season that is more robust to measurement errors and other potential sources of discrepancy with the longer historical series. This is valuable pending availability of new fully vetted data, which often takes longer to become available than is ideal.

To leave a comment for the author, please follow the link and comment on their blog: R – SNAP Tech.

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)