I am trying to control the range of the axe, (SAS 9.4), but the range is still set automatically. The code is:
proc sgplot data=GAL.DIET_OBESITY_CORR;
xaxis values=(0 to 60 by 10);
yaxis values=(0 to 70 by 10);
xaxis label="low vegetable eaters,%";
yaxis label="low fruits eaters, %";
scatter x=little_vegetables y=little_fruits;
ellipse x=little_vegetables y=little_fruits
/lineattrs=GraphData1 (thickness=3);
run;
Also does’t work:
xaxis min=0 xaxis max=60;
yaxis min=0 yaxis max=70;
This is in particular confusing, since the example based on https://blogs.sas.com/content/graphicallyspeaking/2012/01/19/they-go-where-you-put-them/ does work, I can play with the range and get the axes as defined by the code:
proc sgplot data=sashelp.class;
xaxis values=(0 to 60 by 10);
yaxis values=(0 to 70 by 10);
scatter x=weight y=height / group=sex datalabel=weight;
run;
Anyone can spot the problem?