Compute the minimal elements to recreate a histogram manually by defining the total number of bins.
calc_bin(x, bins = bins)A data frame with the x location, the width of the bars and the number of observations at each x location.
any vector or variable
the number of requested bins
Internal function to compute the minimal elements to recreate a histogram manually by defining the total number of bins, used by ggs_histogram ggs_ppmean and ggs_ppsd.