Utility Functions for R Histograms