BIN : new method for creating a more ggplot-friendly dataframe