Description Usage Arguments Examples
Returns an appropriate function to pass to the breaks
argument of any continuous_scale
1 | break_setter(n = 5)
|
n |
suggested number of breaks (defaults to 5) |
1 2 3 4 5 6 7 8 9 10 11 12 | ggplot(mtcars, aes(x = disp, y = mpg)) +
geom_point() +
scale_y_log10()
ggplot(mtcars, aes(x = disp, y = mpg)) +
geom_point() +
scale_y_log10(breaks = break_setter())
ggplot(mtcars, aes(x = disp, y = mpg)) +
geom_point() +
scale_y_log10(breaks = break_setter(10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.