View source: R/integer_breaks.R
integer_breaks | R Documentation |
See https://stackoverflow.com/a/62321155
integer_breaks(n = 5, ...)
n |
The number of breaks |
... |
extra parameters passes to |
data(mtcars)
ggplot(mtcars[mtcars$wt > 3, ], aes(x = cyl, y = wt)) +
geom_point() +
scale_y_continuous(breaks = integer_breaks())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.