I am creating a plot in R with dates like xaxis. My frame has dates, no problem. I use a custom date range - one that cuts off some of the earliest data using a fixed start and slightly expanding the latest data using the end defined by some other code. The range is ~ 47 days. It all works fine.
My problem is that the xaxis label only includes one “Feb” label, but I would like to include at least three labels, if not 5.
starttime <- strptime("20110110", "%Y%m%d")
endtime <- strptime("20110226 1202", "%Y%m%d %H%M")
xrange <- c(starttime, endtime)
yrange <- c(0, 100)
par(mar=par()$mar+c(0,0,0,7),bty="l")
plot(xrange, yrange, type="n", xlab="Submission Time", ylab="Best Score", main="Top Scores for each team over time")
The resulting graph is as follows:

I just need the best shortcuts. I am not too concerned about what they are, but something with a Month + Day and at least 3 of them.
source
share