Compute the minimal elements to recreate a histogram manually by defining the total number of bins.
calc_bin(x, bins = bins)
any vector or variable
the number of requested bins
A data frame with the x location, the width of the bars and the number of observations at each x location.
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
.