View source: R/cut_midpoints.R
Like ggplot2::cut_number, except returns the midpoints of the intervals rather than intervals (factors).
1 | cut_midpoints(x, n, ...)
|
x |
numeric vector |
n |
number of intervals to create |
... |
Arguments passed on to base::cut.default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.