date_*_breaks does not return breaks, but a function that calculates
breaks. This is for compatibility with the breaks functions from scales
such as scales::pretty_breaks(), and for ease of use with ggplot2.
date_yq_breaks(n = 6) date_ym_breaks(n = 6) date_yw_breaks(n = 6)
| n |
|
|---|
a function that calculates a maximum of n breaks for a date_xx
vector
#> [1] "2016-M01" "2016-M04" "2016-M07" "2016-M10"date_ym_breaks(12)(x)#> [1] "2016-M01" "2016-M02" "2016-M03" "2016-M04" "2016-M05" "2016-M06" #> [7] "2016-M07" "2016-M08" "2016-M09" "2016-M10" "2016-M11" "2016-M12"