calc_all_bin_width: Calculate all bin width for a histogram using various...

View source: R/calc_bin_width.R

calc_all_bin_widthR Documentation

Calculate all bin width for a histogram using various recommended methods

Description

Applies 'laviz::calc_bin_width' and returns a tibble with all the bin widths calculated by all the methods.

Usage

calc_all_bin_width(x)

Arguments

x

A numeric object

Value

A tibble

References

https://en.wikipedia.org/wiki/Histogram#Square-root_choice https://stats.stackexchange.com/questions/798/calculating-optimal-number-of-bins-in-a-histogram https://arxiv.org/pdf/1612.07216.pdf https://cran.r-project.org/web/packages/essHist/essHist.pdf https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.170.173&rep=rep1&type=pdf https://www.neuralengine.org//res/histogram.html https://www.qimacros.com/histogram-excel/how-to-determine-histogram-bin-interval/#:~:text=Here's

Examples

library(ggplot2)

calc_all_bin_width(diamonds$carat)

calc_all_bin_width(economics_long$value)


emilelatour/laviz documentation built on Nov. 11, 2024, 9:42 p.m.