I want to create a graph with a fixed x-axis range using the SGPLOT command. Specifically, I want the x-axis to range from -100 to 100 by 10. However, when I ran the code, the x-axis displayed a range of -25 to -75 by 25 instead. Here is my code: proc sgplot data=test5aT nowall noborder nocycleattrs dattrmap=attrmap noautolegend ; title 'A'; format text $txt.; styleattrs axisextent=data ; highlow y=obsid low=low high=high/lineattrs=(thickness=.05); scatter y=obsid x=percent / markerattrs=(symbol=circle size=10); refline 1 / axis=x noclip; text x=xl y=obsid text=text / position=bottom contributeoffsets=none strip; yaxistable exposure / location=inside position=left textgroup=id labelattrs=(size=12 Weight=Bold); yaxistable nobsused / location=inside position=left labelattrs=(size=12 Weight=Bold) valueattrs=(size=9); yaxistable iqr percent _95/ location=inside position=left; yaxis reverse display=none; xaxis labelattrs=(size=12) valueattrs=(size=9); x2axis min=-100 max=100 values=(-100 to 100 by 10)display=all labelattrs=(size=9) offsetmin=0 offsetmax=0; xaxis label='Rate (%)' LABELPOS=DATACENTER labelattrs=(color=Black size=9 WEIGHT= BOLD); run;
... View more