search for: oddon

Displaying 4 results from an estimated 4 matches for "oddon".

Did you mean: addon
2018 May 06
2
Adding Year-Month-Day to X axis
Jim, That you very much! How do I instruct staxlab to label once every n days, rather than labeling every day? Greg > On May 5, 2018, at 6:50 PM, Jim Lemon <drjimlemon at gmail.com> wrote: > > staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d")) [[alternative HTML version deleted]]
2018 May 06
0
Adding Year-Month-Day to X axis
...els 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: oddones<-seq(1,length(x_yyyymmdd)-1,by=2) staxlab(1,at=x_yyyymmdd[oddones], labels=format(x_yyyymmdd,"%Y-%m-%d")[oddones]) It will also work with plain "axis", which is what you seem to want. Jim
2018 May 07
2
Adding Year-Month-Day to X axis
...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: > > oddones<-seq(1,length(x_yyyymmdd)-1,by=2) > staxlab(1,at=x_yyyymmdd[oddones], > labels=format(x_yyyymmdd,"%Y-%m-%d")[oddones]) > > It will also work with plain "axis", which is what you seem to want. > > Jim [[alternative HTML version deleted]]
2018 May 07
0
Adding Year-Month-Day to X axis
...; 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: > > oddones<-seq(1,length(x_yyyymmdd)-1,by=2) > staxlab(1,at=x_yyyymmdd[oddones], > labels=format(x_yyyymmdd,"%Y-%m-%d")[oddones]) > > It will also work with plain "axis", which is what you seem to want. > > Jim > >