Conversion for geom_histogram

Note that geom_histogram is an alias for geom_bar plus stat_bin (http://docs.ggplot2.org/current/geom_histogram.html).

I have (manually) included changes from PR #44 (non-numeric data with factor levels).