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.



jverzani/UsingR documentation built on Aug. 3, 2020, 11:57 a.m.