my_break_fun: Step axis grid breaks

Description Usage Arguments Details Value Examples

View source: R/my_break_fun.R

Description

set grid breaks by step

Usage

1
my_break_fun(x, step = 50000)

Arguments

step:

the step.

x:

limits

Details

In scale_(x|y)_continuous, one can only explicitly set the grid breaks. With this function one can specify the breaks with a step.

Value

Return break vector with the given 'step'

Examples

1
2
3
ggplot(cars, aes(dist, speed)) + 
  geom_point()+
  scale_x_continuous(breaks 

leonardommarques/reliabilitytools documentation built on Aug. 1, 2019, 8:03 p.m.