create_breaks2 | R Documentation |
Create breaks vector that can be used with cut(), with log2 bin width as input.
create_breaks2(bin_count, min_val, log2_bin_width_inv, log_answers = TRUE)
bin_count |
Number of bins between breaks. |
min_val |
Value for the minimum break (fencepost). |
log2_bin_width_inv |
1 / (log2(bin width)), e.g. 8 means a log2(bin_width) of 0.125 |
log_answers |
This determines whether the break values themselves are log values or not. e.g. if TRUE breaks may be [1, 2, 3] (log2), if FALSE breaks may be [2, 4, 8] (linear). |
Vector defining breaks for use with cut(), length == bin_count + 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.