I am trying to set x-axis ticks to month ends in ggplot2. Currently the plot generated has ticks that correspond to the first of the month. The code I am using to generate the scale is
p + scale_x_date(limits = c(as.Date("2006-12-31"), as.Date("2014-09-30")), date_breaks = "6 months", date_labels = "%Y-%m-%d")
I would have thought that since my limits are month ends it ticks would also be month ends. Furthermore, my data starts on 2007-01-02 so the first tick is 2007-02-01. I would like to set the ticks in line with quarter ends.