Description Usage Arguments Value
To generate axes breaks dynamically in ggplot, sometimes you need count values rather than a continuous scale. This function takes a range of integers and generates n equally spaced integer breaks.
1 | int_breaks_rounded(x, n = 5)
|
x |
an object coercible to numeric by as.numeric. |
n |
integer giving the desired number of intervals. Non-integer values are rounded down. |
numeric equally spaced vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.