[R] Adding Year-Month-Day to X axis

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Sun May 6 09:52:45 CEST 2018

Hi Greg,
By default, the "axis" function puts the labels on one line and drops
labels that would overlap. When you have labels that are all the same
length, this usually results in every second, or third, or fourth
label being displayed. So you can probably get what you want by not
using staxlab. However, if you really want to use staxlab, try this:


It will also work with plain "axis", which is what you seem to want.


More information about the R-help mailing list