proc template; define statgraph modelband; begingraph; entrytitle "Spline Fit with Confidence Bands"; layout overlay; modelband "cliband" / name="confband1" display=all legendlabel="90% CLI" fillattrs=GraphConfidence; modelband "clmband" / name="confband2" display=all legendlabel="90% CLM" fillattrs=GraphConfidence2; scatterplot x=weight y=mpg_highway / datatransparency=.7; pbsplineplot x=weight y=mpg_highway / name="fitline" clm="clmband" cli="cliband" alpha=.1 legendlabel="Spline Fit"; discretelegend "fitline" "confband1" "confband2"; endlayout; endgraph; end; run; proc sgrender data=sashelp.cars template=modelband; run;
datatransparency=0.2 fillattrs=(transparency=0.6)
datatransparency=0.2 fillattrs=(transparency=0.6)