I'm working in SAS 9.4 on panel graphs which look as follows: Using code: proc sgpanel data=mydata;
format period perf. group grpf. time best8.;
styleattrs datacontrastcolors=(darkblue bigb liyg vpap gold);
panelby group / spacing=5 novarname columns=2;
vline time / response=myoutcome group=period lineattrs=(thickness=2 pattern=solid);
colaxis display=(novalues) values=(0 to 24) max=24 label='Time';
rowaxis values=(0 to 100 by 20) grid label='% with outcome';
keylegend / title='Grouping var';
run; Whenever I try to specify which values should be shown on the x-axis, using *any* of these options: colaxis values=(0 to 24 by 3); colaxis values=(0 3 6 9 12 15 18 21 24); colaxis refticks=(values) values=(0 3 6 9 12 15 18 21 24); the graph gets messed up - it's no longer the curve it should show, esp. for low values, and it seems to shorten one of the curves (yellow): In general, there seems to be something off with the x-axis, when I specify for example colaxis values=(0 3 6 24), the spacing is even between all these values, although it obviously shouldn't be. I thought it may be because of inconsistent time intervals in my input dataset (0.1, 0.2, 0.3... until 1.0, and then 2.0, 3.0..., with format 8.3 in dataset), but when I edited the set to include only values spaced by 1 (0.0, 1.0, 2.0...), I had the same problem. How can I specify what I want shown on the x-axis (0 to 24 by 3) & keep the actual curve as it should be? Thank you!
... View more