I've used ggplot2 to plot some values on dates. By default, R chose 3 dates (always from January of several years) to label the x axis. So far so good.
I now want to "increase" the number of dates that are shown on the x axis but I have over 5000 observations so I can't do it manually. Do you have an idea of how to get like 6 dates or even better 6 certain dates shown on the x axes?
my.plot <-ggplot(data=data, aes(x=date, y=value, group=xyz, color=xyz)) +
geom_line() +
scale_x_date(date_labels = "%Y-%m")
Thank you very much in advance!