break_setter: Returns an appropriate function to pass to the 'breaks'...

Description Usage Arguments Examples

View source: R/break_setter.R

Description

Returns an appropriate function to pass to the breaks argument of any continuous_scale

Usage

1
break_setter(n = 5)

Arguments

n

suggested number of breaks (defaults to 5)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
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))

## End(Not run)

gregorp/gregor documentation built on May 17, 2019, 8:36 a.m.