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
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))
     

pocdata/pocr documentation built on Jan. 5, 2022, 9:54 a.m.