data confidence; input Var $ 1-2 Mean LowerCI UpperCI; datalines; X1 1.2 0.1 4.2 X2 1.2 0.1 4.2 X3 50.0 48.7 60.3 X4 6.0 5.0 7.3 X5 6.1 5.0 7.3 X6 16.7 0.4 64.1 X7 66.4 55.2 69.6 ; run; ods html close; ods listing; ods graphics / reset width=500px height=300px imagename='confidence_SG'; title 'Mean and Confidence Intervals'; proc sgplot data=confidence; vbarparm category=var response=mean / limitupper=upperci limitlower=lowerci; yaxis grid; run; ods graphics / reset width=500px height=300px imagename='confidence_SG_Stat'; title 'Mean and Confidence Intervals'; proc sgplot data=confidence; vbarparm category=var response=mean / limitupper=upperci limitlower=lowerci datalabel datalabelpos=top; yaxis grid; run; title; ods graphics / reset width=500px height=300px imagename='confidence_SG_Stat_H'; title 'Mean and Confidence Intervals'; proc sgplot data=confidence; hbarparm category=var response=mean / limitupper=upperci limitlower=lowerci; xaxis grid; run; title;