Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

Tools for Analyzing MCMC Simulations from Bayesian Inference

v1.5.1.1
GPL-2
Authors
Xavier Fernández i Marín [aut, cre] (<https://orcid.org/0000-0002-9522-8870>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.