hadley/ggplot2 — Issue #372: scale_*_date should handle natural language in the breaks argument
Author: jiho
Created: 2012-01-24 08:48:31+00:00
State: open

I'd like to be able to write

scale_x_date(breaks = "10 weeks")

rather than

scale_x_date(breaks = date_breaks("10 weeks"))

since the scale is a date scale, it seems like it would be possible to know that it needs to handle the "10 weeks" argument with date_breaks(). I understand that, from a programming point of view it makes sense to have the same argument take the same kind of data in every scale_* function. I'm just wondering if, in some cases, it would be possible to make it a bit easier for the user.