View source: R/graph_binning.R
adaptive_breaks | R Documentation |
Starts by binning the variable by the breaks provided in breaks
(if
breaks
is a vector), or generating a set of breaks
at uniformly
spaced intervals (if breaks
is a single number). It then iteratively
merges intervals with counts lower than min_count
by removing breaks
until all remaining intervals have counts of at least min_count
.
adaptive_breaks(x, min_count, breaks)
x |
The variable to be binned |
min_count |
The minimum count for each bin |
breaks |
Either a vector containing an intital set of breaks or a single number indicating how many uniformly spaced intervals to use when constructing the initial set of breaks. If a single number is provided, the minumum break will be the minimum value of x and the maximum break will be the maximum value of x. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.