04-19-2012 05:33 PM
running EG4.3 on SAS92 on Windows.
I want to create a gplot with months on the horizontal axis, like:
do date='01jan12'd to '31dec12'd;
format date date9.;
axis1 order='01jan12'd to '31dec12'd by month;
proc gplot data=work.x;
plot actual*date / haxis=axis1;
my graph looks like this:
the horizontal axis is strange, what did I do wrong?
04-19-2012 05:57 PM
hi ... first, you cannot do this by month ... axis1 order='01jan12'd to '31dec12'd by month;
since the end date does not allow an entire month interval and you will not get any dates in December other than 12/01
but you can do this ... axis1 order='01jan12'd to '01jan13'd by month;
second, I tried your code in both V9.1 and V9.3 and got the attached
they are both from V9.3 and they both worked better than what you are showing ... are you showing all the various options that are in place
did you try starting with GOPTIONS RESET=ALL;
ps I'm NOT using EG so I have no idea if that's the issue here
04-19-2012 06:09 PM
both your suggestions:
- to '01jan13'd
- goptions reset=all
solved the problem.
wrt 2, looks like eg sets some goptions that I'm not aware of.