Hi, I am analyzing data of different strains with different genotypes and I am trying to format the x axis a certain way. My data is categorical and I would prefer not to change it numbers. I added a xaxis values statement and now my graph looks crazy. Any suggestions? I attached photos of before I used the xaxis value statement and after. This is my code: *Creating figure plotting estiamted probs & CI**; proc logistic data=estimated2 alpha=0.2 noprint; class mosquitostrain (ref= 'NO') genotype / param=ref; model Alive(Event='1')= mosquitostrain genotype; /* 1. Use a procedure or DATA step to write Pred, Lower, and Upper limits */ output out=LogiOut predicted=estprob2 l=lower95 u=upper95; run; /* 2. Be sure to SORT! */ proc sort data=LogiOut; by mosquitostrain genotype; run; /* 3. Use a BAND statement. If more that one band, use transparency */ title "Predicted Probabilities with 95% Confidence Limits"; title2 "Four Strains"; proc sgplot data=LogiOut; band x=genotype lower=Lower95 upper=upper95 / group=mosquitostrain transparency=0.75; series x=genotype y=estprob2 / group=mosquitostrain curvelabel; xaxis grid; xaxis values= ('WT,WT' 'WT,HET' 'HET,WT' 'HET,HET' 'MUT,WT' 'WT,MUT' 'HET,MUT' 'MUT,HET' 'MUT,MUT'); yaxis grid label="Predicted Probability of Survival" max=1; keylegend "L" / location=inside position=NW title="Genotype" across=1 opaque; run;
... View more