calc_bin: Calculate binwidths by parameter, based on the total number...

Description Usage Arguments Details Value

View source: R/functions.R

Description

Compute the minimal elements to recreate a histogram manually by defining the total number of bins.

Usage

1
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.


ggmcmc documentation built on Feb. 10, 2021, 5:10 p.m.