get_breaks | R Documentation |
Calculate breaks to discretize a numeric vector, using different methods
get_breaks(x, n = 5, method = break_methods())
x |
a numeric vector |
n |
integer indicating the number of intervals/bins desired |
method |
a character of length 1, indicating the method to use. Possible values are c("jenks", "isowidth", "quantile") |
a numeric vector of length <= n + 1.
get_breaks(1:100, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.