histwidth | R Documentation |
Creates a set of breaks and absolute frequencies in the range from 'from
' to 'to
'. The class widths are
sampled from widths
. The resulting numbers could be multiplied with an integer, if the sum(n)
is too small.
Additionally, it is checked whether the generated densities are terminating decimals.
histwidth(from, to, widths, dmax = 100)
width_breaks(from, to, widths, dmax = 100)
dhistwidth(from, to, widths, dmax = 100)
from |
numeric: start value |
to |
numeric: end value |
widths |
numeric: a vector of width to sample from |
dmax |
numeric: max. denominator value |
A list with breaks
, n
's for each class and decimal
if all densities are terminating decimals.
l <- histwidth(1.6, 2.1, widths=c(0.05, 0.1, 0.15, 0.2))
l
x <- histx(l$breaks, l$n)
histdata(x, l$breaks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.