calc_bin {ggmcmc} | R Documentation |
Calculate binwidths by parameter, based on the total number of bins.
Description
Compute the minimal elements to recreate a histogram manually by defining the total number of bins.
Usage
calc_bin(x, bins = bins)
Arguments
x |
any vector or variable |
bins |
the number of requested bins |
Details
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
.
Value
A data frame with the x location, the width of the bars and the number of observations at each x location.
[Package ggmcmc version 1.5.1.1 Index]