inst/shiny/hist-bins/README.md

Example of bin selection when constructing a histogram

Based on example by RStudio.

The basic histogram is defined by:

The choice of bins then is very important. The hist function has several means to specify this:

The scaling of $n^{1/3}$ is known to be optimal, but the choice of constant makes the latter two different.

As well, the specification of breaks can be a requested number of bins or a specification of the bins.



Try the UsingR package in your browser

Any scripts or data that you put into this service are public.

UsingR documentation built on March 18, 2022, 7:32 p.m.