Learn R Programming

ggmcmc (version 1.5.1.1)

calc_bin: 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

Value

A data frame with the x location, the width of the bars and the number of observations at each x location.

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.