Breaks for week-binning date axes
Usage
week_breaks(width = 1L, week_start = getOption("phylepic.week_start"))
Arguments
- width
Number of weeks between breaks (e.g.
2
will give a break every fortnight).- week_start
Day the week begins (defaults to Monday). Can be specified as a case-insensitive English weekday name such as "Monday" or an integer. Since you generally won't want to mix definitions, it is more convenient to control this globally with the
"phylepic.week_start"
option, e.g.options(phylepic.week_start = "Monday")
.
Value
A break function suitable for use in ggplot2::scale_x_date()
et al.