hadley/ggplot2 — pull request #448 by BrianDiggs (2012-03-19 19:44:17+00:00)
Title: stat_bin2d now handles NA in data

stat_bin2d did not correctly handle NA's in the data. This could be
triggered by setting scale limits which did not include the entire
range of the data.

This arose from a discussion on the mailing list
https://groups.google.com/d/topic/ggplot2/VAB1wKqwg9w/discussion