bin_dots function

Bin data values using a dotplot algorithm